How can i plot 1 variable in x and 3 in y for a 2 D plot

조회 수: 2 (최근 30일)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 10월 18일
편집: madhan ravi 2018년 10월 18일
if true
% code
end[num] = xlsread('steering_angle.xlsx') ;
Steeringangle = num(:,1);
Geschwindigkeit = num(:,2);
Steeringangle(isnan(Steeringangle)) = [];
Geschwindigkeit(isnan(Geschwindigkeit)) = [];
Spurweitvorne=1.55;
Spurweitrueck=1.52;
Radstand=2.637;
Radius=((Radstand/tan(Steeringangle))+((Spurweitvorne-Spurweitrueck)/2));
Radiusin=((Radstand/tan(Steeringangle))+((Spurweitvorne-Spurweitrueck)/2))-0.76;
Radiusraus=((Radstand/tan(Steeringangle))+((Spurweitvorne-Spurweitrueck)/2))+0.76;
Geschwindigkeitin=Geschwindigkeit*(Radiusin/Radius);
Geschwindigkeitraus=Geschwindigkeit*(Radiusraus/Radius);
I want to plot Steering Angle vs Geschwindigkeit ,Geschwindigkeitin ,Geschwindigkeitraus

채택된 답변

madhan ravi
madhan ravi 2018년 10월 18일
편집: madhan ravi 2018년 10월 18일
[num,~,~] = xlsread('steering_angle.xlsx') %use function syntax properly
plot(Steeringangle,Geschwindigkeit,'b')
hold on
plot(Steeringangle,Geschwindigkeitin,'g')
plot(Steeringangle,Geschwindigkeitraus,'r')
  댓글 수: 5
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 10월 18일
how should i convet the data in ascending order?
madhan ravi
madhan ravi 2018년 10월 18일
편집: madhan ravi 2018년 10월 18일
sort(datas,'ascend')
see sort()

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by