how can access a table which contain cells?

I have a table that contain cells an it is like this: [1x38 double] [1x38 double] [1x38 double]... I can access each row at time but I need all the rows to be stored in a matrix.

 Réponse acceptée

Star Strider
Star Strider le 17 Oct 2015

0 votes

The cell2mat function could be what you want.

6 commentaires

I have tried and I receive this error
Error using cell2mat (line 42)
You can not subscript a table using only one subscript. Table subscripting requires both row and variable subscripts.
Star Strider
Star Strider le 18 Oct 2015
Modifié(e) : Star Strider le 18 Oct 2015
Consider the table2cell function first then, depending on what you want to do.
I have these table and want to access the data in order to be able to write them at one xls files. It is not possible as being now....
insertdata{1} =
[1x28 double]
[1x19 double]
[1x3 double]
Star Strider
Star Strider le 18 Oct 2015
You may not need to do anything with them to write them to an Excel file. Use the writetable function. Just give it a file name with an .xls or similar Excel extension.
Kelly Kyriakou
Kelly Kyriakou le 18 Oct 2015
This is perfect!!! Thank you really very very much for your precious help.
Star Strider
Star Strider le 18 Oct 2015
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by