Start plot at origin

10 次查看(过去 30 天)
Maxime
Maxime 2023-2-28
编辑: Voss 2023-3-2
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')

采纳的回答

Voss
Voss 2023-2-28
编辑:Voss 2023-3-2
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Networks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by