To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
i have 10 pcs of 200 by 200 dim of images. then i formed a matrix with the 10 by 40000. some of the column consist the same value from top to bottom, therefore i want to eliminate or replace it with 0. i have try repmat and std or even mean. i want to have only the significant features of my image so that i can perform PCA using princomp function.tq 4 ur help.
No products are associated with this question.
% Generate sample data: columns = 18; % Could be 40000 or size(m, 2) rows = 4; m = randi(4, rows, columns)
% ----- HERE'S THE MAIN CODE --------------------------- % Find out where the entire column is the same number % by taking the mean of the column and seeing % if the mean of the column is the same as the first row. columnAllTheSame = mean(m) == m(1,:) % Set those that are all the same to 0: m(:, columnAllTheSame) = 0