Date: Oct 25, 2012 1:36 AM
Author: lady firmament
Subject: coulomb + viscous friction

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?