Plot bar with 2 different axis
Ältere Kommentare anzeigen
Hello, I am new to Matlab.. I wanna to plot bar with 2 different y axis... I do not understand much functions, so can any one help me
4 Kommentare
KALYAN ACHARJYA
am 11 Sep. 2018
Bearbeitet: KALYAN ACHARJYA
am 11 Sep. 2018
Which version Matlab you are using?
Ali Tawfik
am 11 Sep. 2018
Ali Tawfik
am 11 Sep. 2018
KALYAN ACHARJYA
am 11 Sep. 2018
Bearbeitet: KALYAN ACHARJYA
am 11 Sep. 2018
If somehow I can help you, it would be great for me. I am using quite older version of Matlab, yyaxis was introduced in 2016a,have you tried as following, I have not tested it.
x=linspace(0,20);
y1=sin(x);
yyaxis left
bar(x,y)
y2=sin(2*x).*exp(0.5*x);
yyaxis right
bar(x,z)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
