Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

How to save cell data from workspace?

Asked by BB

BB (view profile)

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

Yowh (view profile)

on 19 Nov 2012

Sir your link doesn't exist.

BB

BB (view profile)

on 19 Nov 2012

Hi,it is OK~

Jan Simon

Jan Simon (view profile)

on 19 Nov 2012

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

BB

BB (view profile)

Products

No products are associated with this question.

3 Answers

Answer by Walter Roberson

Walter Roberson (view profile)

on 19 Nov 2012
Accepted answer

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

1 Comment

BB

BB (view profile)

on 19 Nov 2012

I use

load(filename.mat);

but still no data read to workspace

Walter Roberson

Walter Roberson (view profile)

Answer by Harshit

Harshit (view profile)

on 19 Nov 2012

It is working for me after loading.

0 Comments

Harshit

Harshit (view profile)

Answer by BB

BB (view profile)

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

Walter Roberson (view profile)

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

BB (view profile)

on 19 Nov 2012

OK,thank you for your help~

BB

BB (view profile)

Contact us