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

3 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 1 Jun. 2020
Try this
Pos = vertcat(F1.Position);
f1 = Pos(:,1);
f2 = Pos(:,2);
f3 = Pos(:,3);
  16 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by