Azzera filtri
Azzera filtri

When I plot just one row from matrix it plots fine, but when I plot it with some other signals it always turns to zero. It only works when I plot ti alone, why?

2 visualizzazioni (ultimi 30 giorni)
Even when I plot both rows from matrix, that second one becomes zero and first one is displayed fine.
plot(t,I(2,:) this works and its not zero plot(t,I) this just display the first row and turns second to zero

Risposta accettata

Star Strider
Star Strider il 19 Nov 2016
They probably have significantly different scales.
Try this:
figure(1)
subplot(2,1,1)
plot(t, I(1,:))
grid
subplot(2,1,2)
plot(t, I(2,:))
grid

Più risposte (0)

Categorie

Scopri di più su Two y-axis in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by