Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

reason for this error??

Asked by supriya on 18 Apr 2012
>> i_close =(gi,se2); figure,imshow(i_close);

It's reporting the error=

??? i_close =(gi,se2); figure,imshow(i_close);
              |
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

i cant see any reason!!! Help..

0 Comments

supriya

Products

No products are associated with this question.

1 Answer

Answer by Matt Tearle on 18 Apr 2012
Accepted answer
   i_close =(gi,se2);

This isn't valid MATLAB. Should there be a function call here, or are you trying to concatenate? Eg

   i_close = functionname(gi,se2);
   i_close = [gi,se2];

2 Comments

supriya on 18 Apr 2012

yeah yeah u r ri8...
It's i_close = imclose(gi,se2);

Matt Tearle on 18 Apr 2012

Yeah, the "unbalanced (" part of the error message isn't quite right. MATLAB made a guess, and, in this case, guessed wrong.

Matt Tearle

Contact us