I was making a model for the crank slider mechanism, and I wanted to show an error when the length of the crank exceeds the length of the sliding lever. When the crank length r2and slider r3, my code is as follows:
if r3=<r2
error('The crank length cannot exceed that of the slider')
end
I get an error message:
??? error('The crank length cannot exceed that of the slider')
|
Error: Unexpected MATLAB expression.
can someone tell me what i am doing wrong and how to fix it?
Ahmed source
share