hot to plot data on right side of y-axis?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Engineer Batoor khan mummand
le 20 Nov 2020
Commenté : Engineer Batoor khan mummand
le 20 Nov 2020
hi all:
i want to plot T on right side of y-axis and I on left side of y-axis .
i used plotyy code and yyaxis right/yyaxis left code but still it gives me error .
T=[29.164 30.256 31.186 32.237 33.127 34.137 35.148 37.129 36.119 35.148 34.137 33.127]
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
thanks
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 20 Nov 2020
Modifié(e) : KALYAN ACHARJYA
le 20 Nov 2020
T=[29.164 30.256 31.186 32.237 33.127 34.137 35.148 37.129 36.119 35.148 34.137 33.127]
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
yyaxis right
plot(T);
yyaxis left
plot(I);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Two y-axis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!