I have Parse error at '<' :usage might be invalid syntax

 Accepted Answer

You are using C or C++ syntax. MATLAB syntax is either
for variable = expression
or
while expression
You should probably be using
for j = 1 : maxc
or possibly
for j = 1 : maxc - 1

More Answers (1)

Asked:

on 10 Oct 2017

Answered:

on 10 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!