How I can get number from a table?

Hi guys!... My question. I have a large table. The values are similar to qq. I need to get the numbers 2,3,4,5,6. I have tried different ways but nothing work! Can anyone give support. Thanks...!
qq =
table
Movimientos
___________
2 3 4 5 6

 Accepted Answer

madhan ravi
madhan ravi on 28 Jun 2020
Edited: madhan ravi on 28 Jun 2020
qq(all(ismember(qq{:,:},2:6),2),:) % ?

7 Comments

Thanks madhan..
I done it:
bb=qq.Movimientos
bb =
categorical
2 3 4 5 6
But.. I need, for example, get each number... I appreciate your support. :)
when I type bb(1)...
bb(1)
ans =
categorical
2 3 4 5 6
:S
screenshot of the workspace & command window
qq = table;
Movimientos = 2:6
qq = table(Movimientos)
Movimientos =
2 3 4 5 6
qq =
table
Movimientos
_____________________
2 3 4 5 6
bb = qq.Movimientos
bb =
2 3 4 5 6
bb(1)
ans =
2
Wow! madhan. I really appreciate your support. It works. You are very kind.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!