hello everyone! I need to extract some data out of my table and I am facing the following problem. can anyone help?

11 vues (au cours des 30 derniers jours)
I have a variable named F1 which is 100*1 structure table.
there is a column named Position which is 100*3 structured data.
I need to take each of Position data out and also seperate them like 100*1 columns 3 times seperately in 3 diffrent variables.
I wrote like this :
>> F1.Position(:,1)
Expected one output from a curly brace or dot indexing expression, but there were 100 results.
How can I extract the data of each column of position in diffrent variables such as f1,f2,f3?

Réponse acceptée

Ameer Hamza
Ameer Hamza le 1 Juin 2020
Try this
Pos = vertcat(F1.Position);
f1 = Pos(:,1);
f2 = Pos(:,2);
f3 = Pos(:,3);
  16 commentaires

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by