Which of the following code can generate the plot if variables t and y are created as following? t=linspace(0,1,100); y=
Posted: Fri May 20, 2022 11:50 am
Which of the following code can generate the plot if variables t and y are created as following? t=linspace(0,1,100); y=sin(2"pit); 2 1.8 1.6 1.4 4 1.2 1 0.8 0.6 0.4 1 0.2 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 O A.plot(t,2*y); O B. plot(t,y); OC.plot(t.y+1); O D.plot(t,2*y-1);