I have to create a function then execute it in the command window.
I need to find "c" by graphic means.
I am starting at something like this :
a = fnval(dummy,c)
fnval(c,dummy)
fnval(...,'l')
The program works if I plug in some value for "c" in the equation. I just need to figure out how to get it to use an infinite amount of values.
thanks for any help.
function dummy=parachute(c)
m=68;
g=9.81;
t=10;
v=45;
dummy=-v+(g*m./c)*(1-exp(-c/m)*t);
fplot('parachute',[0,20])
grid on
xlabel('c')
ylabel('f(c)')
end
I need to find "c" by graphic means.
I am starting at something like this :
a = fnval(dummy,c)
fnval(c,dummy)
fnval(...,'l')
The program works if I plug in some value for "c" in the equation. I just need to figure out how to get it to use an infinite amount of values.
thanks for any help.
function dummy=parachute(c)
m=68;
g=9.81;
t=10;
v=45;
dummy=-v+(g*m./c)*(1-exp(-c/m)*t);
fplot('parachute',[0,20])
grid on
xlabel('c')
ylabel('f(c)')
end