How to get value from cell?

12 visualizaciones (últimos 30 días)
Elder Winter
Elder Winter el 5 de Abr. de 2019
Comentada: madhan ravi el 6 de Abr. de 2019
Hy all, can you help me? I have some problem to take value from cell, so i have cell (lets say clutering). I want to take value from clustering{2} as an array so i can take it in loop. But the value of clustering{2}, there are two column (you could see below) and i want to split them to [col row] for each column, but i didn't know which syntax that match for my problem. I was try some syntax like cell2mat, cell, and others, i didn't know am i wrong when using it or what. I was got may errors like 'Too many output arguments', 'cell contents reference from a non-cell array object', 'Size inputs must be scalar', sorry i new with matlab.
159.0000 145.0000
69.0000 70.0000
59.0000 192.0000
148.0000 32.0000
111.0000 43.0000
81.5000 110.5000
137.5000 112.0000
181.0000 204.0000
95.5000 174.0000
168.6667 70.6667
149.0000 66.5000
81.0000 32.0000
141.5000 85.5000
11.0000 31.0000
65.3333 147.0000
190.0000 130.6667
165.0000 122.5000
88.0000 81.0000
112.0000 109.5000
131.0000 113.0000
54.0000 59.0000
20.0000 18.0000
163.0000 88.3333
203.0000 163.0000
61.0000 33.0000
50.0000 73.0000
97.0000 68.0000
67.0000 133.0000
116.0000 59.6667
47.0000 84.0000
157.0000 41.0000
181.0000 172.0000
Every help of you is pleasure to me. Thank you.

Respuesta aceptada

madhan ravi
madhan ravi el 5 de Abr. de 2019
  2 comentarios
Elder Winter
Elder Winter el 6 de Abr. de 2019
Thanks, it works. How if i want to take it in loop 1-by-1 in each column, like 1st i take [rowKpt colKpt] = [159.0000 145.0000], 2nd [rowKpt colKpt] = [69.0000 70.0000], and etc.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by