blob: 6bb0265d461730d68a0eddfb12bb438f093d72cc (
plain)
1
2
3
4
5
6
7
8
|
//example 1.3//
clc
//clears the screen//
clear
//clears already existing variables//
disp('Let the temperature and pressure be converted into electrical signals and T=1 if temperature exceeds the specified limit and P=1 if pressure exceeds the specified limit. If T=1 or P=1 or both T and P are 1 then the alarm is required to be activated, i.e., the signal applied to the alarm Y=1. This operation can be expressed as an or operation.')
disp('Y=T or P')
disp('Y=T+P')
|