matlab - How to define a variable without assign any value to it -
vo
upper limit of integration expression , variable want predefine variable without value since variable trying solve for.
everything else defined.
%//a object's velocity changing function of sine, full cycle 0=>speed=>0 vt=-((speed/2)*cos((2*pi/t0)*t)-(speed/2))) %//integrate vt function can distance has given distance=int(vt,t,0,t0) %//the last step need find how long takes object finish full cycle of movement time=solve(eqn,t0)
try using syms
command in matlab. syms
part of symbolic math toolbox , can predefine "variables" without explicitly solving them. form part of mathematics expression want.
once formulate equation want, can use solve
(as have used in post) solve variable you.
Comments
Post a Comment