When plotting the sine and cosine curves of [0,2π] simultaneously in a figure window, we can use the command ().
A、x=(0:0.01:2*pi)'; Y=[sin(x),cos(x)]; plot(x,Y);;
B、x=0:0.01:2*pi; Y=[sin(x);cos(x)]; plot(x,Y);;
C、fplot(@(x)sin(x),@(x)cos(x),[0,2*pi]);;
D、fplot(@(x)[sin(x),cos(x)],[0,2*pi]);
发布时间:2025-02-18 09:08:03