Skip to main content
13-Aquamarine
September 13, 2025
Solved

extract odd and even values

  • September 13, 2025
  • 2 replies
  • 730 views

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

 

 

 

Best answer by MartinHanak

Hi,

file saved in Mathcad prime 11.0 attached.

MartinHanak_0-1757832877508.png

 

2 replies

24-Ruby III
September 14, 2025

Hi,

file saved in Mathcad prime 11.0 attached.

MartinHanak_0-1757832877508.png

 

25-Diamond I
December 2, 2025

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