Date: Oct 25, 2012 12:42 AM
Author: lady firmament
Subject: coulomb + viscous friction

v1=0.0001;v2=-0.0001;
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?