??? Error: File: min_max.m Line: 3 Column: 32 Unexpected MATLAB operator.
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (2)
Azzi Abdelmalek
le 26 Août 2013
Modifié(e) : Azzi Abdelmalek
le 26 Août 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
le 27 Août 2013
0 votes
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!