MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Minnu
on 2 May 2013

Sir,

I have a matrix of size 830x27,want to reduce the size to some ax27 using processpca?how to reduce it?

*No products are associated with this question.*

## 4 Comments

## Zhang lu

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/74297#comment_146730

Hi.

## Minnu

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/74297#comment_146736

Now my matrix size is 10x27 .i want to know how to reduce the dimension of matrix without any loss of features

## Zhang lu

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/74297#comment_146742

## Jan Simon

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/74297#comment_146761

No, Zhang, do not do this. Using EVAL to hide an index in the name of a varibale is a really bad idea. This reduces the processing speed substantially, impedes debugging and required equivalently obtuse methods to access the variables later. It would be tremendously smarter to use an index as index (!):

See Answers: FAQ how can I create A1, A2, ... in a loop