Question: MATLAB Create a method to compare the information provided by the function I provide to what you generated in the previous task. previous task function

MATLAB

Create a method to compare the information provided by the function I provide to what you generated in the previous task.

previous task

function [time,y] = dddd(graph)

time=0:0.001:15;

y_array=zeros(1,length(time));

for i=1:length(time)

x=time(i);

if x<1

y(i)= (2*x+1);

elseif (x>=1)&& (x<= 2)

y(i)=(-6*x+25);

else

y(i)= 2*sin(120*pi*x);

end

if graph

plot(time,y);

xlabel('Time');

ylabel('y );

title('Time vs y ');

end

help with the new task

How to compare two large dataset

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!