??? Error: File: min_max.m Line: 3 Column: 32 Unexpected MATLAB operator.
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 26 Ago 2013
Modificato: Azzi Abdelmalek
il 26 Ago 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
il 27 Ago 2013
0 voti
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!