Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
image compression

Subject: image compression

From: sunita swarnamayee biswal

Date: 25 Aug, 2009 08:47:47

Message: 1 of 2

sir,
i m doing fuzzy learning vector quantization program.my partial
program is:-
c=5;
q=0.0001;
v= [2 3 4 5 6];
T=100;
m0=2;
mf=4;
t=0;
x=imread('c:\lena_gray.gif');
x=double(imread('c:\lena_gray.gif'));
whos
imshow(x);
n=length(x);
e=q+0.0001;
while e > q,

 m(t+1)=m0+t*((mf-m0)/T);
%program for uik
for k=1:n
    for l=1:n
     for i=1:c
        Dnum=normalize(x(k,l)-v(i));
        sum=0;
        for j=1:c
            Dden=normalize(x(k,l)-v(j));
            term=Dnum/Dden;
            sum =sum+term^(2/(m(t+1)-1));
        end
      u(k,l,i)=sum^(-1);
      end
   end

Error is---No appropriate methods for function normalize.
On line ==> Dnum=normalize(x(k,l)-v(i));
end

Subject: image compression

From: Daniel Armyr

Date: 1 Sep, 2009 07:18:03

Message: 2 of 2

normalize is not part of base matlab. Ask whoever you copied your code from where they got the nomalize.m and get ahold of a copy of it.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us