Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For all problems, use MATLAB scripts to save it. Upload the .m file. Generate a separate pdf with the solutions and upload it as a

For all problems, use MATLAB scripts to save it. Upload the .m file. Generate a
separate pdf with the solutions and upload it as a report.
1. Suppose x is an array between 0 and . Use MATLAB to compute the array
y1 and y2 that results from the function: y1 = 7 sin(4x), y2 = 7cos(4x). Use
MATLAB to plot y1 and y2
a. In two different figures
b. In same figure using hold on command. Put a legend inside indicating
y1 and y2. Change colors and markers to distinguish two functions.
c. Utilizing subplot command and generating a 2 by 1 subplot.
d. Use function plot (fplot command) to generate the functions in two
different figures.
e. In same figure but with two different y-axis. Scale the x axis from -1 to
13; and y-axis from -8 to 8.
Put x-axis label as Time and y-axis label as Amplitude. Put appropriate
title of the graphs. Put legends where necessary. Increase linewidth if needed.
Increase the font sizes of the labels to make the figure look better.
2. Use the same x array from Problem 1, generate a 3d plot using plot3 command
in MATLAB. Use x in the x-axis, y1 and y2 in y, and z axis respectively.
3. Suppose x is an array where x = 1, 1.2,1.4, , 5. Generate a bar plot and a
pie chart. Include necessary labels in your figure.
4. Use MATLAB to find the roots of 133 1822 184 + 2503 = 0. Now,
plot equation for a range of -10
the x-axis. Identify the crossing points and match it with your roots to validate your answers.

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

how would you have done things differently?

Answered: 1 week ago