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

3 次查看(过去 30 天)
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?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-6-1
Try this
Pos = vertcat(F1.Position);
f1 = Pos(:,1);
f2 = Pos(:,2);
f3 = Pos(:,3);
  16 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by