Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Extract Values from the vector

Asked by M@lik Ali on 3 Sep 2012

Hi all

i have a vector like a=[ 4 5 10 3 7 8 11 15 2 19 20 6] now i want a new vector from a but new vector should not contain the values from 1-10; there must be the values of a only which are greater then 10. please help me.

0 Comments

M@lik Ali

Products

No products are associated with this question.

2 Answers

Answer by Andrei Bobrov on 3 Sep 2012
new_vector_from_a = a(a < 1 | a > 10);

0 Comments

Andrei Bobrov
Answer by M@lik Ali on 3 Sep 2012

Thanks a lot it works,

Hi all

I have matrix with 999*10

actually i have 10 feature of 999 images. now what i want is i want to extract features of some images in new matrix like i need the new matrix of 4,5,6 and 7 images among 999 images. my new matrix should be of size 4*10.

How can i do this please help me.

0 Comments

M@lik Ali

Contact us