Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: coulomb + viscous friction
Replies: 2   Last Post: Oct 25, 2012 2:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
lady firmament

Posts: 14
Registered: 10/17/12
coulomb + viscous friction
Posted: Oct 25, 2012 1:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

v1=0.0001;v2=-0.0001;vp=-1:1;
Fc_p=57;Fc_n=28:Fs_p=175;Fs_n=110;s2_p=130;s2_n=130;
if vp>=0
if vp>=v1
Fr=Fc_p+s2_p*vp
else
Fr= vp/v1*Fc_p
end
else
if vp<=v2
Fr=vp/v2*Fc_n
else
Fr=Fc_n+ s2_n*vp
end
end
plot(vp,Fr)
I wanna plot above program for (coulomb + viscous friction) . But The program cannot connect the term( Fr= Fc_p+ s2_p*vp). Is my declareation wrong ? Is there anyone to help me?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.