error message when using graycomatrix()

1 visualización (últimos 30 días)
mahesh chathuranga
mahesh chathuranga el 5 de Oct. de 2013
Respondida: Image Analyst el 5 de Oct. de 2013
comatrix = graycomatrix(imgray_in((row - ((window_size -1)/2)):
(row + ((window_size -1)/2)),(col - ((window_size - 1)/2)):
(col + ((window_size -1)/2))),'NumLevels',nb_graylevels,'Offset',direction); when i'm implementing this type of function ,it gives error message.
Error: File: cooccurrence_new.m Line: 40 Column: 63
Expression or statement is incorrect--possibly unbalanced (, {, or [.
can you please tell me what is the reason for this and how can i solve this.
what is the column: 63.

Respuestas (1)

Image Analyst
Image Analyst el 5 de Oct. de 2013
What you do is to count up all the left parentheses, and right parentheses - they should be the same number. Apparently you don't have that because that's what it's complaining about.

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by