how to convert table with struct to excel sheet

1 view (last 30 days)
i need to know how to convert this table with struct to an excel files with all the data in ... please if you can help but the code to me ( i don't need file name ) the table has many struct

Accepted Answer

Mohammad Sami
Mohammad Sami on 8 Apr 2021
Not really sure about what your data looks like. Assuming your structs are compatible, you can concatenate them together.
s = vertcat({:});
s = struct2table(s);
hussain abdelaziz
hussain abdelaziz on 18 Jul 2021
Dr mohamed ur code was working good when i update matlab now i try to make it don't work when i wrote
n = cellfun(@length,;
it says Error using cellfun
Input #2 expected to be a cell array, was struct instead.
what is the problem ?

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!