function Ffork = Fforkfase3(t)
if Ffork0+Inc_Ffork*t <= Ffork_max
elseif Ffork0+Inc_Ffork*t > Ffork_max
Ffork = Ffork_max;
I have a function with a distinction of cases. The force Ffork should be constant once it reached the maximum value, as you can see in the code.
The input t should be a vector, I called the function in this way:
Ffork = Fforkfase3(t)
I would like to get a vector of Ffork as output. However, I got an error message after running it:
Output argument "Ffork" (and maybe others) not assigned during call to "Fforkfase3".
Could someone tell me my mistake?