??? Error: File: min_max.m Line: 3 Column: 32 Unexpected MATLAB operator.
Show older comments
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.
Accepted Answer
More Answers (2)
Azzi Abdelmalek
on 26 Aug 2013
Edited: Azzi Abdelmalek
on 26 Aug 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
on 27 Aug 2013
0 votes
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!