when I wrote this code an error message appear and I did not understand it can any one help me please?
and this is the error message:
Undefined function 'scatterd' for input arguments of type 'double'.
Error in preprocessfp (line 33)
scatterd (p);

댓글 수: 1

Star Strider
Star Strider 2015년 2월 8일
Please describe what you want to do. What is your ‘gb’ variable?

댓글을 달려면 로그인하십시오.

 채택된 답변

Erik S.
Erik S. 2015년 2월 8일

0 개 추천

The function scatterd is not a standard matlab function, do you mean scatter(d)? Is it a function you made? Is it in the correct folder?

댓글 수: 3

I change the name to scatter and this error displayed I submit the coplete code in the previous comment
Error using scatter (line 53)
Not enough input arguments.
Error in gabourfilter (line 33)
scatter(p);
Erik S.
Erik S. 2015년 2월 9일
Can you explain what you want to do? The scatter function is used for plotting data. You need to give the function at least to inputs, x & y coordinates of the points you are going to plot.
Ameligege
Ameligege 2015년 2월 9일
Actually, I searched about Karskual wallis feature selection code to select fingerprint features that I extract it earlier by using gabor filter and this what I get as a result.for now ,I do not know if they use it as built in function or It is function that they do .They did not include any comment for that except it is kraskual wallis step.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Erik S.
Erik S. 2015년 2월 8일

0 개 추천

You have a space between the name and the argumment,
scatterd (p);
write
scatterd(p);

댓글 수: 2

Ameligege
Ameligege 2015년 2월 8일
I did what you say ,but the error still appear
Guillaume
Guillaume 2015년 2월 9일
spaces between functions/matrices/anything and brackets are allowed and some people actually prefer it this way. This is certainly not the cause of the error.

댓글을 달려면 로그인하십시오.

Image Analyst
Image Analyst 2015년 2월 9일

0 개 추천

MATLAB is case sensitive. So in this:
p = kruskalwallis(cA)
scatter(P);
P is a different variable than p. Put this in your code and tell me what it says:
whos P
whos p
If you still need help, attach myfinger.jpg, and the code for kruskalwallis if it's not part of your wavelets toolbox. I've never heard of that filter though I have heard of a Wallis filter, which is a local filter that tries to make every window have the same, specified mean and standard deviation. I can't try your code though because I don't have the wavelet toolbox.

댓글 수: 6

this is the exact code that I copy and paste from the source that I take the code from:
%%%%%%%%%%%%%%%%%%%%%%%%%%%FEATURE SELECTION %%%%%%%%%%%%%%%%%%%%%
[cA,cH,cV,cD] = dwt2(gabout1,'haar');
p = kruskalwallis(cA)
scatterd (p);
img_features = scatterd (p);
dlmwrite('features.txt', features_img, '-append', 'newline', 'pc');
dlmwrite('target.txt', num2str(P), '-append', 'newline', 'pc');
else
im= im+1
end
end
end
I think it is a function they made as Mr. Erik said.but they did not include its content . what do you mean by wavelet toolbox?(I am still beginner in matlab) I attached the image.
Image Analyst
Image Analyst 2015년 2월 9일
I see reference to dwt2, which I assume means discrete wavelet transform. I don't have the Wavelet Toolbox, so I can't run that function. I also don't have the functions kruskalwallis() or scatterd(). You will have to ask "they" who wrote the functions for help.
Erik S.
Erik S. 2015년 2월 9일
Hi,
kruskalwallis is a function in Statistics toolbox (at least in R2014b), I guess we are not allowed to post the code here, since it would be a propery of the Mathworks? However, it is used for hypothesis testing.
Ameligege, are you sure you should use this function?? As far as I understand the documentation it will only return the p-values of a null hypothesis. How are you supposed to plot these values in a scatterplot? You will only get 1 vector.
Image Analyst
Image Analyst 2015년 2월 10일
I don't have the Statistics Toolbox either. I've added it to the product list at the top of the page. Is scatterd() in there also?
Erik S.
Erik S. 2015년 2월 10일
편집: Erik S. 2015년 2월 10일
No, scatterd() is neither a function in Statistics Toolbox nor Wavelet Toolbox, in R2014b.
Ameligege
Ameligege 2015년 2월 13일
I am working on Matlab R2013a but why it does not accept this function scatter(p)even if i did all your suggestions about the correction .any way I will delete it to solve this error.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Wavelet Toolbox에 대해 자세히 알아보기

질문:

2015년 2월 8일

편집:

2015년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by