how to read a .mat file into table
Show older comments
I have a data: [5 x 3000 double] data.mat file tracking robot movements for 3000 iterations.
The variables are:
data = [
x
y
theta
u1
u2
]
I did
S = load('data.mat');
S
disp(S)
in a livescript but don't get a nice spreadsheet or table to view the data.
I am familiar with Pandas for Python.
How can I display this data so the rows are variables and columns are iterations 1 to 3000.
1 Comment
Stephen23
on 31 Jan 2022
S = load('data.mat');
S.data
Accepted Answer
More Answers (1)
Benjamin Thompson
on 31 Jan 2022
0 votes
Are you trying to transpose the data display? transpose(S.data) or use the apostrophe transpose operator, S.data'
5 Comments
Nobutaka Kim
on 31 Jan 2022
Benjamin Thompson
on 31 Jan 2022
App Designer supports a table display. You can also find your workspace variable in the workspace variables list, right click it, and "view" or "display" it to see all its contents.
Nobutaka Kim
on 1 Feb 2022
Stephen23
on 1 Feb 2022
"Still cannot figure out how to put column headings though."
As Star Strider wrote, you should take a look at STRUCT2TABLE
And also double click on the variable in the workspace to open the variable viewer.
Nobutaka Kim
on 1 Feb 2022
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!