I am trying to convert this Matlab code into python, but due to no experience with Matlab I just can't figure out the way I can do it. Could someone help? Basically, only the fplot command makes me confusing.
E = 95;
m = 250;
c = 0.900;
t = 0:1:100;
T = E*t/(m*c);
f = @(t)E*t/(m*c);
fplot(f,[0,100]);
fplot(fun,[xmin,xmax])plots the functionfunbetween the x-axis limitsxminandxmax. Also notice thatf(t)==T(t+1)(I'm not sure why whoever wrote this program defined bothTandf; maybe to demonstrate different programming strategies?)thas been offset by 1 in your code, has it not? Also, the code seems to translate a use of what would be theplot()function in MATLAB, notfplot(), right?