how to save the values

1 回表示 (過去 30 日間)
ajith
ajith 2013 年 6 月 3 日
how to save the all values of latent in the set of images if i run the code only the 7 image values only save how to reslove the problem
clc
clear all;
warning off all;
for loop=1:7
figname=strcat(sprintf('CLL (%d).png',loop));
img=double(imread(figname));
[pc, score,latent,tsquare] = princomp(img);
latent=latent(1:400,:);
latent=latent';
end

採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 6 月 3 日
編集済み: Andrei Bobrov 2013 年 6 月 3 日
latent = zeros(7,400);
for loop=1:7
figname=strcat(sprintf('CLL (%d).png',loop));
img=double(imread(figname));
[~,~,l0] = princomp(img);
latent(loop,:) = l0(1:400).';
end
  7 件のコメント
Andrei Bobrov
Andrei Bobrov 2013 年 6 月 3 日
編集済み: Andrei Bobrov 2013 年 6 月 3 日
answer as corrected
ajith
ajith 2013 年 6 月 4 日
thanks a lot sir

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by