how do i combine these two plots >> a = 10; >> b = 0: pi/a: 2*pi; >> plot(b,sin(b)) >> a = 10; >> b = 0: pi/a: 2*pi; plot(b,cos(b)) into one plot

1 次查看(过去 30 天)
how do i combine these two plots
a = 10;
b = 0: pi/a: 2*pi;
plot(b,sin(b)),
a = 10;
b = 0: pi/a: 2*pi;
plot(b,cos(b))
into one plot

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-11-25
编辑:Azzi Abdelmalek 2013-11-25
a1= 10;
b1=0: pi/a1: 2*pi;
a2 = 10;
b2= 0: pi/a2: 2*pi;
plot(b1,sin(b1),b2,cos(b2))
%or
plot(b1,sin(b1))
hold on
plot(b2,sin(b2))
% or use plotyy

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by