MATLAB Answers

Lester Lim

Undefined function 'eq' for input

Asked by Lester Lim
on 16 Jan 2013

It happened when I put this line in:

PooledCov = PooledCov + ((nGroup(i) - 1) / (n - k) ).* cov(input(Group,:));

Please help!!!


My input situation is actually a variable called from the GUI. Im doing an LDA(Linear discriminant analysis) on a picture. handles.I is the picture with the pixels loaded into and handles.lableimage is the labelled image. So I think input in this case I should put as handles.I. The program I am looking at and intending to use in my GUI is :

Jan Simon
on 17 Jan 2013

What is "a variable called from the GUI"?

In my case I did a roipoly on a picture, writes a variable into the variable editor. The variable when opened shows the pixels/labels contained.


No products are associated with this question.

1 Answer

Answer by Jing
on 16 Jan 2013

Can you just run 'x=1+1'? If this line is ok. Then there should be something wrong with your variables, what it PooledCov and other variables? Can you post the 'whos' results of them?

  1 Comment

Yup, variable x = 2. So its the problem with the variables right? Im currently running it in GUI for LDA. I will try to look into the variables...

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!