subplot(2,1,1) ezplot(@cos) legend('y=cos(x)') title('y=cos(x)') subplot(2,1,2) ezplot(@acos) legend('y=arccos(x)') title('y=arccos(x)')%第二题A=rand(1,10);B=rand(1,10);plot(A,'rp')hold onplot(B,'yd')