How can i plot 1 variable in x and 3 in y for a 2 D plot
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Shubham Mohan Tatpalliwar
il 18 Ott 2018
Modificato: madhan ravi
il 18 Ott 2018
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
0 Commenti
Risposta accettata
madhan ravi
il 18 Ott 2018
Modificato: madhan ravi
il 18 Ott 2018
[num,~,~] = xlsread('steering_angle.xlsx') %use function syntax properly
plot(Steeringangle,Geschwindigkeit,'b')
hold on
plot(Steeringangle,Geschwindigkeitin,'g')
plot(Steeringangle,Geschwindigkeitraus,'r')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!