Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to save a cell array

Status
Not open for further replies.

Marco83

Mechanical
Joined
Jun 21, 2006
Messages
8
Location
US
I have a problem saving a cell array.

r is a cell array organized as a column containing vectors of different length.

I tried to use the command:

dlmwrite('r.m',r)

but Matlab says that it cannot convert it into a matrix.

I understand the problem but I don't know how to solve it.

Thanks
 
A possibility is to first convert the cell to a struct using the cell2struct function, and then use the save function with the struct option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top