Hi all,
I have a struct. I want to display the content of this struct as a table. So I use the following transformation.
aTable = struct2table(aStruct);
disp(aTable);
We can see the value of modifiedTime is not correct. I hope to display it as a value, not as an array. Can you tell me how I can do it?
Thanks.
aStruct =
LocalName: {'example.cdf'}
Size: '1 KB'
ModifiedTime: '10-May-2010 21:35:00'
LocalName Size ModifiedTime
_____________ ____ ____________
'example.cdf' 1 KB [1x20 char]
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/266835-display-a-struct-as-a-table#comment_340762
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/266835-display-a-struct-as-a-table#comment_340762
Sign in to comment.