MATLAB Online で開く I currently have this as a script: functionW t= (1:56) whilet>=1 & t<=28 Ws t=48+3.6*t+.6363*t^2+.00963*t^3 end while28<t & t<=56 Wr t=-1004+65.8*t end functionWs disp('t is greater than or equal to 1 and t is less than or equal to 28...
I have a piecewise function where the upper and lower limits of the functions are set to 0.5 and -0.5 for the amplitude of the function cos(pi*t). I am not sure how to code the portion where the amplitude needs to remain at 0.5 for all y values above 0.5 and same for all values...