store values in a certain way

4 visualizaciones (últimos 30 días)
Salvatore Mazzarino
Salvatore Mazzarino el 22 de Sept. de 2012
I would store values in a certain way like this:
For example I have values as [2 3] to this values I would connect to 2 a vector as [1 1 0 1 1] in the way when I get 2 I get also the vector

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 22 de Sept. de 2012
Editada: Azzi Abdelmalek el 22 de Sept. de 2012
data(1).x=2
data(1).v=[1 1 0 1 1]
data(2).x=3
data(2).v=[0 1 0 0 1]

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by