I am plotting Efficiency vs. Acceleration. The formula for Efficiency is only valid if the vehicle is accelerating. Therefore, when the vehicle has a constant speed or is decelerating, it appears that Matlab gives it a value of zero. How do I get rid of all of the values of zero at the bottom of my plot?? Thank you so much, in advance!
Also, note that I tried:
Conversion_Eff=Conversion_Eff(Conversion_Eff~=0);Accel=Accel(Conversion_Eff~=0);
but for some reason, that changed my data…I'm not sure why, and I'm not sure what to do! Thank you so much for your help.
Best Answer