Use more “natural” form to manipulate piecewise step functions in Matlab MuPAD?
问题 I have the unit step function: u0:= piecewise([-infinity < t and t < 0,0],[0 < t and t < infinity,1]): Now I want to plot it at some point: T:=1:; plot(u0|t=t-T/2); This works. But when I use a more natural expression: T:=1:; plot(u0(t-T/2)); it simply plots the original unshifted step function. Is there any way to use the more simpler form when plotting the modified step function? 回答1: I believe the reason that what you call the "more natural form" doesn't work, is because u0 has not been