Start plot at origin

조회 수: 17 (최근 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