Filter löschen
Filter löschen

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)
OLAOYE abass
OLAOYE abass am 25 Nov. 2013
Bearbeitet: Azzi Abdelmalek am 25 Nov. 2013
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

Antworten (1)

Azzi Abdelmalek
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

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by