Question: fastt pleaseee Q1. The below MATLAB command is written to find sine of 30 degree. But it does not give the right answer. Identify two

 fastt pleaseee Q1. The below MATLAB command is written to find

fastt pleaseee

Q1. The below MATLAB command is written to find sine of 30 degree. But it does not give the right answer. Identify two errors in the code and rewrite the code to get the right answer. disp Sin(30) (2 marks) Q2 Write a .m code to input 3x3 matrix and print all values in a column vector. (2 marks) Q3 Identify two errors in the below code and rewrite it without errors. x=input("Enter a vector of 5 elements); disp('Vector is',x); (2 marks) Q4. Briefly explain linspace function in MATLAB. (2 marks) Q5. Identify the wrong variables in the below list. (a) X$ (b) M_N (c) UCSI (d) _A (2 marks) Q6. Find and list the four errors in the below lines of MATLAB code. Input('Enter three values); x=input(*First Number); y=input(Second Number *); z=input('Third Number); if(x>y && x>z) disp(x); elseif(y>x && y>z) disp(y); elseif(z>x && z>y) disp(z); (2 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!