Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following equation can be used to compute values of y as a function of x: = 1 / 3 sin ( 2 ) (

The following equation can be used to compute values of y as a function of x:
=1/3sin(2)(0.0250.144+0.083102)
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=w2 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 x- and 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions