Greetings ... I am new to the community, as well as Matlab, I would like to know how I can generate a ramp signal which lasts a certain time, since the ramp signal of the source library does not have the possibility to change this configure this parameter. So far I have tried to implement my own block in MATLAB fuction.
function y = fcn(slope,rise_time,start_time)
t = start_time:rise_time;
y = slope*t;
But I only get the following error.
- Output 'y' you have variable size but the upper bound is not specified;explicit upper bound must be provided.*