too many input argument
显示 更早的评论
function [F]=feature(im)
im=double(im);
m=mean(mean(im));
s=std(std(im));
F=[m s];
end
2 个评论
Emenike Goodluck
2018-11-10
Question not well understood. What is the problem you want to solve? Where do you encounter the error?
Walter Roberson
2018-11-10
How are you invoking this routine ?
回答(4 个)
madhan ravi
2018-11-11
编辑:madhan ravi
2018-11-11
im = rand(1,10)
F=feature1(im) %calling of function
function F=feature1(im)
im=double(im);
m=mean(mean(im));
s=std(std(im));
F=[m s];
end
5 个评论
madhan ravi
2018-11-11
Please note that feature is an inbuilt function of matlab so i changes it to feature1 in case to avoid shadowing.
madhan ravi
2018-11-11
So use imread to read Image file
madhan ravi
2018-11-11
I told you to change feature to feature1 did you even read my comment??
Anil Kumar
2018-11-11
madhan ravi
2018-11-11
编辑:madhan ravi
2018-11-11
Anytime :), make sure to accept the answer if it answered your question so that people know the question is solved
Anil Kumar
2018-11-11
编辑:madhan ravi
2018-11-11
1 个评论
Anil Kumar
2018-11-11
编辑:madhan ravi
2018-11-11
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!