Expression or statement is incorrect--possibly unbalanced (, {, or [.

Basic question about MATLAB programming
Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Expression or statement is incorrect--possibly unbalanced (, {, or [.

Post by matlab1 »

AS you know, when a thing is unbalanced that there is no same character in both side.

for example :

A = [3,4; 6 7

or

out = sum((x-y)+90

In both statements, there is no same symbol at the end of the statement.

Correct expression :



A = [3,4; 6 7]

or

out = sum((x-y)+90)



:P
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests