Question: 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

 3- (25 Points) 2D Plot. You must make a single script

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

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!