help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined mat2gray


From: Jordi Gutiérrez Hermoso
Subject: Re: Undefined mat2gray
Date: Tue, 10 Apr 2012 11:48:29 -0400

On 10 April 2012 11:34, Olli Alatalo <address@hidden> wrote:
> I've got the following piece of code
>
> function A=noise(i, j)
> A=round(unifrnd(0,255,i,j));
> B=mat2gray(A);
> imshow(B);
> figure();
> imhist(B);
> figure();
> pause(4);
>
> when I run it, I receive an error:
>
> error: `mat2gray' undefined near line 3 column 3

It's in the image package. Did you install it?

HTH,
- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]