MATLAB: Ramp function in Matlab

ramp function in matlab

I know there is a block for ramp function in Simulink. Is there a similar function in Matlab instead of using for loop?

Best Answer

No, there's no such function in matlab. Check this out: Waveform Generation: Time Vectors and Sinusoids