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.

 採用された回答

Star Strider
Star Strider 2015 年 10 月 17 日

0 投票

The cell2mat function could be what you want.

6 件のコメント

Kelly Kyriakou
Kelly Kyriakou 2015 年 10 月 17 日
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 2015 年 10 月 18 日
編集済み: Star Strider 2015 年 10 月 18 日
Consider the table2cell function first then, depending on what you want to do.
Kelly Kyriakou
Kelly Kyriakou 2015 年 10 月 18 日
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 2015 年 10 月 18 日
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 2015 年 10 月 18 日
This is perfect!!! Thank you really very very much for your precious help.
Star Strider
Star Strider 2015 年 10 月 18 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by