MATLAB Online で開く This might be a starting place for a running code. functiongraph N=1000; n=(56-1)/N; x=[1:n:56]; fori=1:length(x) F(i)=W(x(i)); end plot(x,F) xlabel('Time') ylabel('Body Weight') end functionF = W(t) ...
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...