Use == for logical operations. Also do not call your variable true. Writing
while true=0
is very counterintuitive, as true has a specific meaning in matlab.
Use == for logical operations. Also do not call your variable true. Writing
while true=0
is very counterintuitive, as true has a specific meaning in matlab.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!