writing a file
古いコメントを表示
pathname ='D:\dataset\' ;
dirlist = dir( [pathname '*.jpg'] );
pickind='jpg';
for x = 1:length(dirlist)
I = imread([pathname, dirlist(x).name]);
I=imresize(I,[256 256]);
size(I)
m = mean(I(:));
I1=double(I);
V = var(double(I(:)));
J = stdfilt(I);
SD = std(double(I(:)));
result=[m V SD];
final_col2{k}=result;
end
save('new','final_col2');
please tell how to write a function file for this and call it in a main file
5 件のコメント
TAB
2012 年 1 月 5 日
final_col2{k}=result
k = ?
kash
2012 年 1 月 5 日
Titus Edelhofer
2012 年 1 月 5 日
Hi Kash,
this is more or less the same question as
http://www.mathworks.com/matlabcentral/answers/25354-error-in-writing-function-file
Perhaps we continue the discussion there ...
Titus
kash
2012 年 1 月 5 日
Walter Roberson
2012 年 1 月 5 日
Please do not start new questions just because no one has answered a previous question. You can post reminders, and you can edit questions to reflect current situations.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!