MATLAB: Why am i getting ‘Illegal use of reserved keyword “elseif” while running this program

elseif

See the attached file
[edited by madhan ravi – removed huge dumps of code]

Best Answer

change the line
% designate gait characteristic if rv <= 0
to
% designate gait characteristic
if rv <= 0