Borrar filtros
Borrar filtros

how to save the values

1 visualización (últimos 30 días)
ajith
ajith el 3 de Jun. de 2013
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

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 3 de Jun. de 2013
Editada: Andrei Bobrov el 3 de Jun. de 2013
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 comentarios
Andrei Bobrov
Andrei Bobrov el 3 de Jun. de 2013
Editada: Andrei Bobrov el 3 de Jun. de 2013
answer as corrected
ajith
ajith el 4 de Jun. de 2013
thanks a lot sir

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by