Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3- (25 Points) 2D Plot. You must make a single script file that contains commands for all sub-questions (from i to vi). Use Matlab 2D

image text in transcribed

3- (25 Points) 2D Plot. You must make a single script file that contains commands for all sub-questions (from i to vi). Use Matlab 2D plot commands to plot the following three function for x from 2 to +2. y(x)=2e3x224+4xy(x)=0.5x31.4x2+12x3y(x)=15sin(x)+0.2sin2(x)+13 i. (2 Points) From Command Window asking user to enter your name and save the answer in variable myName. (Note: myName is a string) ii. (2 Points) From Command Window asking user to enter your school ID and save the answer in variable myID. (Note: myID is a string) iii. (2 Points) Using Matlab colon operator to create a vector x that is from 2 to +2 with spacing of 0.01. iv. (6 Points) Use Matlab commands to create three vectors for the above defined functions y(x), name them y1,y2, and y3 with input vector x. v. (3 Points) Save all created variables from i to iv (myName, myID, x,y1,y2, and y3) into a Matlab data file "BE1500_Quiz2_q3.mat". vi. (10 Points) Use Matlab subplot command to create three separate plots in one figure for the generated three vectors y1,y2 and y3 from (iv). If your student ID ends with an even number, the three plots will be arranged in three rows and one column; and if your student ID ends with an odd number, the three plots will be arranged in one row and three columns. - Each plot should include appropriate title (Specify it is y1, y2, or y3, no need to have detail description of the functions). - All three plots use solid line, but they are in different colors. No markers are needed

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago