What are the values of the following MATLAB expressions Cons

What are the values of the following MATLAB expressions? Consider 5 eases below. 1

Solution

eg: in matlab

a>b if true results in 1 if false results in 0, assume a and b having any value

1&1 results in 1

1&-1 results in 1

1 with 0 results in zero if & operation

eg 1 <5|3-3/5.......1<5 is true results in 1 and 0/5 is 0 so 1|0.........result 1

eg1 <(5<2&9)&2^3...........1<(0&9)&8...........1<1&8.............result 1

eg -(1==2|5!=3)*100........-(0|1)*100...........result -100

eg 2<=2*5>=6/3......1*5> = 6/3.............result 1

eg -3&8>5*(5+7|9)............1>5 * (12|9).....0 * 1..........result 0

 What are the values of the following MATLAB expressions? Consider 5 eases below. 1 Solutioneg: in matlab a>b if true results in 1 if false results in 0, ass

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site