??? Error: File: min_max.m Line: 3 Column: 32 Unexpected MATLAB operator.
Mostrar comentarios más antiguos
Hi, i want to read a image file using function , and i have just written following 3 lines
what is the reason to show the error
function [min,max]= imread(moon.jpg)
ima=imread(moon.jpg); % reads in image
% display image
imshow(ima);
error is : ??? Error: File: min_max.m Line: 3 Column: 32 Unexpected MATLAB operator.
Respuesta aceptada
Más respuestas (2)
Azzi Abdelmalek
el 26 de Ag. de 2013
Editada: Azzi Abdelmalek
el 26 de Ag. de 2013
Use
im=imread('moon.jpg')
Do not use min and max as variables (they are Matlab functions). The same remark for your function name:
For example write
function [min1,max1]= image_read(moon.jpg)
ima=imread('moon.jpg'); % reads in image
% display image
imshow(ima);
% your code
Uni Lübeck
el 27 de Ag. de 2013
0 votos
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!