MATLAB Answers

BB

How to save cell data from workspace?

Asked by BB
on 19 Nov 2012

I want to save my xy3 cell contains 2401x1

http://ppt.cc/Q8nb

And I save to .mat file , then when I import data in workspace

it's show error "file contains uninterpretable data"

http://ppt.cc/_dHB

Why I can't read the cell file

thanks!

  3 Comments

Yowh
on 19 Nov 2012

Sir your link doesn't exist.

BB
on 19 Nov 2012

Hi,it is OK~

Jan Simon
on 19 Nov 2012

Please post the SAVE command you are using for storing the data. Then we can suggest a corresponding LOAD command.

Products

No products are associated with this question.

3 Answers

Answer by Walter Roberson
on 19 Nov 2012
 Accepted answer

Do not uiimport() or import() your data: load() it.

  1 Comment

BB
on 19 Nov 2012

I use

load(filename.mat);

but still no data read to workspace


Answer by Harshit
on 19 Nov 2012

It is working for me after loading.

  0 Comments


Answer by BB
on 19 Nov 2012

This is my save code

savefile = 'listmode data.mat';

save(savefile, 'xy3');

It appear this error:

Warning: Variable 'xy3' cannot be saved to a MAT-file whose version is

older than 7.3.

To save this variable, use the -v7.3 switch.

Skipping...

  2 Comments

Walter Roberson
on 19 Nov 2012
save(savefile, 'xy3', '-v7.3');
BB
on 19 Nov 2012

OK,thank you for your help~


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today