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

4 visualizaciones (últimos 30 días)
Prerna Surbhi
Prerna Surbhi el 22 de Abr. de 2016
Respondida: Image Analyst el 22 de Abr. de 2016
While partition data into cluster based segmentation. getting error at line 4:
points=('(h1,r1)';'(h2,r2)';'(h3,r3)');
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
I am attaching the demo.m file according to FindPartions.m file.please suggest me what changes i have to do in order to implement the function into image.

Respuestas (2)

Image Analyst
Image Analyst el 22 de Abr. de 2016
Try
points = [h1,r1; h2,r2; h3,r3];
to make a 2D array of (x,y) points.

the cyclist
the cyclist el 22 de Abr. de 2016
Plain and simple,
points=('(h1,r1)','(h2,r2)','(h3,r3)')
is not valid MATLAB syntax. It is unclear to me what you intend this code to do, so it is not possible for me to give you definitive advice on how to fix this. I think you would benefit from some of the basic MATLAB tutorials available online.

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by