Filter löschen
Filter löschen

loading a dataset (S=load('file_name'), how?

5 Ansichten (letzte 30 Tage)
Ken
Ken am 30 Sep. 2011
I have a 512*513 matlab dataset, saved as "file_name.mat". If I use load('file_name'), I can have the dataset loaded as 'data'. But I want it to be named as "S", and tried to use S=load('file_name'), but "S" has the structure informations only.
How can I load 'file_name' in 'S'? thanks!

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 30 Sep. 2011
Once you loaded,
S=data;
clear data;

Weitere Antworten (1)

Daniel Shub
Daniel Shub am 30 Sep. 2011
Even better would be
temp=load('file_name');
S = temp.data;
clear temp;

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by