Question: Questions 1 a and 1 b ( MATLAB exercise due at the end of the tutorial ) [ 1 0 ] The following equation can

Questions 1a and 1b (MATLAB exercise due at the end of the tutorial)[10]
The following equation can be used to compute values of y as a function of x:
=
1/3
sin (
2
)(0.02
50.14
4+0.08
310
2
)
Where a and b are constants.
a. Write a script file for calculating y using the above mathematical expression.
a=5, b=8, and x is an array holding values from /100 to in increments of x=/30
Make your code compute w, an array y=w
2
and z=1/w
Enable your code to print formatted output displaying w, x, y, and z. Use both fprintf and
table MATLABs built-in functions.
Generate three plots side by side.
The first plot is a plot of x versus w. Label the x- and y-axis accordingly, add a title to
the graph and include a grid and legend.
o The second plot is x versus y and x versus z in the same graph. Label the xand y-axis accordingly, add a title to the graph and include a grid and legend.
(hint: use different colours or markers to distinguish between plots)
The third plot is a 3D plot of x, y and z. Label the x-, y- and z-axis accordingly, add a
title to the graph and include a grid.
Note: Name the script file. Break yo

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!