In the following code: time I 2 3 4 567 810 1 speed [1210 1866 2301 2564 2724 28
ID: 3813592 • Letter: I
Question
In the following code: time I 2 3 4 567 810 1 speed [1210 1866 2301 2564 2724 2881 2879 2915 3010] subplot (2,2,1) plotitime,speed); xlabel 'time (sec ylabel speed (rpm) subplot (2,2,2); semilogx(time,speed) xlabel 'time (sec) ),ylabe speed (rpm) subplot (2,2,3) semilogy(time,speed) xlabel 'time (sec) ylabel speed (rpm) subplot (2,2,4)loglog (time,speed) xlabel 'time (sec) ylabel speed (rpm the subplot instruction is used to The following code produces t 0:5:500; v 10; for A 20:10:60 plot (t,x) hold on; end xlabel('time'),ylabel 'horizontal distance produce a 2x2 grid for the plots plot the date in four separate windows produce four separate windows for the plots plot the data in a 2x2 grid a plot ofxvs. A with Aon the X-aXIS a plot ofx vs. t with t on the axIS a plot ofxvs. t with t on the x axIS a plot of x vs. A with Aon the y-axisExplanation / Answer
Solution1: option 3
subplot are used to create separate windows for the plots. As we are using 4 subplots so four separate windows will be created.
Solution 2: option 3
As it is clear from the xlabel statement x axis has time on it. ylabel statement shows horizontal distance.
Solution 3: option 2
As we are using hold on which pause the plots. So we are able to see all the plots at the same time.
Solution 4:option 3
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.