Load variable from mat file

15 Ansichten (letzte 30 Tage)
Collet Bastien
Collet Bastien am 29 Mär. 2013
Hello,
I have a mat file containing 4 variables. For some reasons, I would like to load only of these 4 variables (let's say Y). How can I load it without loading the 3 others ?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Mär. 2013
S = load('YourFileName', 'Y');
Y = S.Y;

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by