1. (25 Points) 20 Plot. You must make a single script file that contains commands: for all sub-questions (trom i to vi). the Matiak 29 phot commende to plet the Kellene tiere function for a trime 2 to 22. y ( x ) = 7 x h 2 + 24 + 4 x y ( x ) = 05 x 2 14 x 2 + 12 x 1 Y ( x ) = 15 sin ( x ) + 63 min 2 ( x ) + 13 Q Rainta) From Command Wendcu akkng asec ts enter foge nume and saye the arvier ii. [2. Foints] Froen Command Window mhive was to enter pour wetwool iD and lave the anveer in variable mylo, JNotes mych it a strinel (2 Points) Uhing Matlab colon operatse fo oreite a voctor a that is from 2 to + 2 with: spaving of out. W. 46 Prints) use Matlabicommands 10 create the en vectors fer she above defined functions y ( x ) , name thers y 1 , y 2 , and y 3 with input vectoe x . Matlab data file ese 1300 - Ouirz ol mat?". vi. (10 Points) Use Matiab subplet cpinand to ere ate the se segarate plots in cone figure for the eenerated the vectors y 2 , y 2 and y3 froen finl. if youe atudent in ands with an even number, the shrer ploti wit be arrayged in there sowis and one columny and if your student ib erads wich an odd number, the three phem wie be arrangeit in ove row and theee columine. - Fach plot should include appeopriate tirle (Apecily it is y1, y2, or y 3, no need to have detail dencription of the fumeticaral. - All three plots use soid line, tiat itwey are in diferwe celon, No inarkers are needed. (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 ) = 2 e 3 x 2 24 + 4 x y ( x ) = 0.5 x 3 1.4 x 2 + 12 x 3 y ( x ) = 15 sin ( x ) + 0.2 sin 2 ( 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 mylD. (Note: mylD is a string) (2 Points) Using Matlab colon operator to create a vector x that is from 2 to + 2 with spacing of 0.01 . (6 Points) Use Matlab commands to create three vectors for the above defined functions y ( x ) , name them y 1 , y2 , and y3 with input vector x . v. (3 Points) Save all created variables from i to iv (myName, myID, x , y 1 , y2 , and y3) into a Matlab data file "BE1500_Quiz2_q3.mat". 16. (6 Points) Use Martab comnnands io create the ee vecfors for the above defined functions v ( x ) , name them y 1 , y 2 , and y 3 with ingut wetor x . v. (B Pointv) Save all created variables from i to iv imytiome, myl0, x , y 1 , y 2 , and y 3 ) into a Matiab data 1Ae "BE1500 Cuin2 q q mat". vi, (10 Pointc) Uwe Matlab subplot command to cre ite thiree sepwate plots in one figure for the generated theee vecters y1, y and y3 tram (im), if your student 10 ends with an even numbec, the three plots will be mtanhed in three roms qad one columin; and if your student ID ends with an odd number, the th.
1. 1. (25 Points) 20 Plot. You must make a single script file that contains commands: for all sub-
questions (trom i to vi). the Matiak 29 phot commende to plet the Kellene tiere function for a
trime 2 to 22. y ( x ) = 7 x h 2 + 24 + 4 x y ( x ) = 05 x 2 14 x 2 + 12 x 1 Y ( x ) = 15 sin ( x ) +
63 min 2 ( x ) + 13 Q Rainta) From Command Wendcu akkng asec ts enter foge nume and saye
the arvier ii. [2. Foints] Froen Command Window mhive was to enter pour wetwool iD and lave
the anveer in variable mylo, JNotes mych it a strinel (2 Points) Uhing Matlab colon operatse fo
oreite a voctor a that is from 2 to + 2 with: spaving of out. W. 46 Prints) use Matlabicommands
10 create the en vectors fer she above defined functions y ( x ) , name thers y 1 , y 2 , and y 3
with input vectoe x . Matlab data file ese 1300 - Ouirz ol mat?". vi. (10 Points) Use Matiab
subplet cpinand to ere ate the se segarate plots in cone figure for the eenerated the vectors y 2 , y
2 and y3 froen finl. if youe atudent in ands with an even number, the shrer ploti wit be arrayged
in there sowis and one columny and if your student ib erads wich an odd number, the three phem
wie be arrangeit in ove row and theee columine. - Fach plot should include appeopriate tirle
(Apecily it is y1, y2, or y 3, no need to have detail dencription of the fumeticaral. - All three
plots use soid line, tiat itwey are in diferwe celon, No inarkers are needed. (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 ) =
2 e 3 x 2 24 + 4 x y ( x ) = 0.5 x 3 1.4 x 2 + 12 x 3 y ( x ) = 15 sin ( x ) + 0.2 sin 2 ( 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 mylD. (Note: mylD is a string) (2 Points) Using
Matlab colon operator to create a vector x that is from 2 to + 2 with spacing of 0.01 . (6 Points)
Use Matlab commands to create three vectors for the above defined functions y ( x ) , name them
y 1 , y2 , and y3 with input vector x . v. (3 Points) Save all created variables from i to iv
(myName, myID, x , y 1 , y2 , and y3) into a Matlab data file "BE1500_Quiz2_q3.mat". 16. (6
Points) Use Martab comnnands io create the ee vecfors for the above defined functions v ( x ) ,
name them y 1 , y 2 , and y 3 with ingut wetor x . v. (B Pointv) Save all created variables from i
to iv imytiome, myl0, x , y 1 , y 2 , and y 3 ) into a Matiab data 1Ae "BE1500 Cuin2 q q mat". vi,
(10 Pointc) Uwe Matlab subplot command to cre ite thiree sepwate plots in one figure for the
generated theee vecters y1, y and y3 tram (im), if your student 10 ends with an even numbec, the
three plots will be mtanhed in three roms qad one columin; and if your student ID ends with an
odd number, the three plots wil be arranged in one tow and three calumes. - Each plot should
include appropeiate tale Fepely is is y1; y2, or y3, no neend to have detall description of the
furctiome). - All three plots use solid line, bet they are in sitferment colors. No markers are
needed.