Hi, I made this graph but I don't know how I can make both plots start at the origin (0,0). So the starting point of Y needs to be zero.
plot(tv,gnegate(d(:,3)),'r'); hold on; plot(tv,(r),'b')

 Akzeptierte Antwort

Voss
Voss am 28 Feb. 2023
Bearbeitet: Voss am 2 Mär. 2023

0 Stimmen

data1 = gnegate(d(:,3));
data2 = r;
data1_plot = data1 - data1(1);
data2_plot = data2 - data2(1);
plot(tv,data1_plot,'r'); hold on; plot(tv,data2_plot,'b')

Weitere Antworten (0)

Kategorien

Mehr zu Networks finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 28 Feb. 2023

Bearbeitet:

am 2 Mär. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by