Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Jun 21, 2006
8
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
 
Replies continue below

Recommended for you

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