Thread Subject:
extracting specific numbers from a vector or a matrix

Subject: extracting specific numbers from a vector or a matrix

From: fmri

Date: 1 May, 2013 22:21:12

Message: 1 of 1

Hi

If I have a matrix that contains two vectors each value is related to the corresponded one... eg :
matrix: 2 4 6 8 10 12 14 16 ....etc
          3 4 3 3 5 6 7 8 ....etc

These numbers represent two groups: groups. each group last for 30 times then the other group starts and so one....the length of it is 1400 and I want is to extract the values for group 1 which will be 700.

To rexplain it again :

group a starts the matrix until the 30 elements and then group b until the 60 and then group a until the 90 and the group b until the 120 ...so on.

I found a way here in the forum after search of extracting the six element every time but I could not figure out how to do what I want ..
var = MyMatrix (:5:end, 2);

Thanks in advance

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
extracting vectors fmri 1 May, 2013 22:24:23
rssFeed for this Thread

Contact us