Lab.2 Assignment
write the flowchart and create the shortest m-file to count the
number of elements in matrix C that have the magnitude above
aninput:n( 1+ 13)
27 S427) 1437 4
T+j 2-3) -5 6
C=
3-97 4427 -64+2j; -3;
2447 3-7 2427 8-7
Lab.2 Assignment
2. Create the shortest m-file to establish the below matrix
Lab.2 Assignment
3. Start writing m-file with below syntax.
A=[ 5 2 15 68 23 9 13 50 10]
write the flowchart and create the shortest m-fileto —/,,11)
sort the elements in A in ascending order. DO NOT use
the sort (), max(), min() function provided by
MATLAB.Lab.2 Assignment
4. Write the shortest m-file to plot for A and B:Lab.2 Assignment
* Create the shortest m-file to convert the input value of degree
Celsius to Fahrenheit and vice versa. The input format would
be “input:##F” or “input:##C” and the program should return
the converted degree depends on the last alphabet