Multiplot

Hii
i am posting code with the warning message.can you please help me how to solve this?
%code for multiplotting
x=1:4*pi
y=sin(x)
z=cos(x)
k=tan(X)
plot(x,y)
hold on
[AX H1 H2]=plotyy(x,z,x,k)
r=cot(x)
s=sec(x)
hold on
plotyy(x,r,x,s)
legend('sinx','cosx','tanx','cotx','secx')
Warning: Ignoring extra legend entries.
> In legend at 294
"secx does not appear in the graph"
also while zooming this curve does not get zoomed

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by