Undefined function 'eq' for input

It happened when I put this line in:
PooledCov = PooledCov + ((nGroup(i) - 1) / (n - k) ).* cov(input(Group,:));
Please help!!!

5 件のコメント

Jan
Jan 2013 年 1 月 16 日
Please copy the complete error message.
Walter Roberson
Walter Roberson 2013 年 1 月 16 日
What is "input" in your situation? input() is a MATLAB library call to request input from the user; if you are trying to use "input" as a variable name it is better if you rename that variable.
Lester Lim
Lester Lim 2013 年 1 月 17 日
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 :http://matlabdatamining.blogspot.sg/2010/12/linear-discriminant-analysis-lda.html
Jan
Jan 2013 年 1 月 17 日
What is "a variable called from the GUI"?
Lester Lim
Lester Lim 2013 年 1 月 17 日
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.

サインインしてコメントする。

回答 (1 件)

Jing
Jing 2013 年 1 月 16 日

0 投票

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 件のコメント

Lester Lim
Lester Lim 2013 年 1 月 17 日
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...

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2013 年 1 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by