필터 지우기
필터 지우기

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 CenterFile Exchange에서 Dimensionality 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