53211822A

1.3)




x = -2:0.01:2 ;

y = 2*x ;

t=1;

for n = -2:0.01:2

if (n<0 || n>=1)

 y(t) = 0;

elseif (n>=0 && n<1)

 y(t) = 2*n;

end

t = t+1;

end

plot (x,y)

พรรณิภา กองเกตุใหญ่

  • 1.
    53211822A 1.3) x = -2:0.01:2; y = 2*x ; t=1; for n = -2:0.01:2 if (n<0 || n>=1) y(t) = 0; elseif (n>=0 && n<1) y(t) = 2*n; end t = t+1; end plot (x,y)