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

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.
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개)

카테고리

태그

질문:

2015년 10월 17일

댓글:

2015년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by