From: shaukat Ali on
i have convert an rgb color model to hsv color model for that i m using rgb2hsv command. but every time i run it, i get a error ' Attempt to execute SCRIPT rgb2hsv as a function.' please suggest a way out
From: ImageAnalyst on
rgbImage = imread('peppers.png');
hsvImage = rgb2hsv(rgbImage);

I ran it and it worked fine. Please post the complete code of
EVERYTHING in your m-file. You might have a function declaration in
there somewhere but when I put one it gave a somewhat different error
message than what you had so that's why we need to see your code.
From: shaukat Ali on
RGB = imread('A123.jpg');
HSV = rgb2hsv(RGB);

Thanks, I think there was some thing wrong happened with matlab (i dont know). above code works fine on another pc.


ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <7669bd22-2d4f-43f0-bbf0-2b62e897483b(a)r5g2000yqb.googlegroups.com>...
> rgbImage = imread('peppers.png');
> hsvImage = rgb2hsv(rgbImage);
>
> I ran it and it worked fine. Please post the complete code of
> EVERYTHING in your m-file. You might have a function declaration in
> there somewhere but when I put one it gave a somewhat different error
> message than what you had so that's why we need to see your code.