Assigning names to values of an array

Hello, so I have the following problem. I have 2 arrays, a 1x395 containing names and a 1x395 containing values corresponding to said names. What I want to achieve is assign each name to its corresponding value, sigma-clip the values and then return the names of the values that survived the sigma-clip. I know how to sigma-clip the values, but how do I assign the name of the values to the values themselves? Thanks in advance

Respuestas (1)

Cris LaPierre
Cris LaPierre el 2 de Abr. de 2021
Combine the names and value into a table first?
Atbl = table(names,values)
Learn more about accessing data in a table here.

4 comentarios

Lysandros Bafaloukos
Lysandros Bafaloukos el 5 de Abr. de 2021
And after that?
Cris LaPierre
Cris LaPierre el 5 de Abr. de 2021
Perform your sigma clipping on the values, but remove the row of the table. What remains is the surviving values, and their corresponding names.
Lysandros Bafaloukos
Lysandros Bafaloukos el 5 de Abr. de 2021
ok but how can I simultaneously eliminate the undesired values AND their corresponding names?
Cris LaPierre
Cris LaPierre el 5 de Abr. de 2021
What have you tried? It's much easier to help if you share your code and data.

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 2 de Abr. de 2021

Comentada:

el 5 de Abr. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by