[matlab] I just want to plot a function that describes position as a function of time

by Raziel2701
Tags: describes, function, matlab, plot, position, time
Raziel2701 is offline
Oct2-10, 07:36 PM
P: 129
It's an object that's falling from rest. The equation takes into account linear friction. in any case, this is is my code or program of whatever it is called:

m=80;%Mass of ignorance
beta=1.6*10^-4;%Given coefficient for air at STP
D=.4;%Diameter of Palin, assuming she's a spherical object
b=beta*D;%Coefficient of linear friction

x=(m./b)*(g*t + e^(-b*t./m));

grid on
ylabel('Position of Sarah Below Helicopter','FontSize',16)

I get this error:
Error in ==> HW13myprogram at 10
x=(m./b)*(g*t + e^(-b*t./m));

What am I doing wrong?
Phys.Org News Partner Science news on Phys.org
Lemurs match scent of a friend to sound of her voice
Repeated self-healing now possible in composite materials
'Heartbleed' fix may slow Web performance
Dr Transport
Dr Transport is offline
Oct3-10, 12:24 PM
Sci Advisor
PF Gold
P: 1,456
replace your equation with

x=(m/b)*(g*t + e.^(-b*t/m));
hasidim is offline
Oct3-10, 01:27 PM
P: 15
It worked fine for me with:

x=(m./b)*(g*t + exp(-b*t./m));

Register to reply

Related Discussions
Position Function of Time Introductory Physics Homework 4
Particle's position as a function of time - Integration Introductory Physics Homework 13
Position as a function of time General Physics 3
position as function of time General Physics 1
a position time function! Introductory Physics Homework 5