- #1
error 401
- 19
- 0
i don't know how i can use MATLAB to plot anti periodic fun ..
the origin site give this code for triangular fun:
fs = 10000;
t = -1:1/fs:1;
x1 = tripuls(t,20e-3);
plot(t,x1), xlabel('Time (sec)');ylabel('Amplitude'); title('Triangular Aperiodic Pulse')
but when i use this for sine wave . i have an error (? Error using ==> sin
Too many input arguments.)
so how i can solve this problem ?
thanx in advance
the origin site give this code for triangular fun:
fs = 10000;
t = -1:1/fs:1;
x1 = tripuls(t,20e-3);
plot(t,x1), xlabel('Time (sec)');ylabel('Amplitude'); title('Triangular Aperiodic Pulse')
but when i use this for sine wave . i have an error (? Error using ==> sin
Too many input arguments.)
so how i can solve this problem ?
thanx in advance