cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

extract odd and even values

DC_11916766
13-Aquamarine

extract odd and even values

Buen día, comunidad. Tengo un problema al extraer los valores pares e impares de un vector en orden. ¿Existe alguna función para realizar esta operación?.

DC_11916766_0-1757774793780.png

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Hi,

file saved in Mathcad prime 11.0 attached.

MartinHanak_0-1757832877508.png

 


Martin Hanák

View solution in original post

2 REPLIES 2

Hi,

file saved in Mathcad prime 11.0 attached.

MartinHanak_0-1757832877508.png

 


Martin Hanák
Werner_E
25-Diamond I
(To:DC_11916766)

Just stumbled over this thread.

For whatever it may be worth, here is a different way to skin this cat:

Werner_E_0-1764692853322.png

The functions can deal with matrices with more than 1 column and works OK with any value you set for ORIGIN. But if ORIGIN is set to an even number like 0 or 2, the first returned matrix contains the rows with even row index (even though I called it "odd". 🙂

 

BTW, for questions about the usage of Mathcad or Prime you are better off and might get more attention if you post in the Mathcad forum.

 

Prime 10 file attached

 

Announcements
Top Tags