Question: Translate the following into MATLAB statements and write down the expression which can be used in MATLAB. Part (a) is given as a demo. (a)

Translate the following into MATLAB statements and write down the expression which can be used in MATLAB. Part (a) is given as a demo. (a) Find the average of three numbers stored in variables x, y and x and store the results in variable avg. Solution: avg=(x+y+z)/3 Or avg=mean([x y z]) (b) Multiply by 2 to the value of square root of the sum of x, y and z, then store the result in variable g. (c) Add 3 to the cube root of average of x and y and store the result in variable n. (d) Convert from degrees Centigrade stored in variable C to degrees Fahreinheit and assign the answer to variable F.

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!