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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 25 Nov. 2013
Bearbeitet: Azzi Abdelmalek
am 25 Nov. 2013
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Two y-axis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!