Load variable from mat file

17 visualizzazioni (ultimi 30 giorni)
Collet Bastien
Collet Bastien il 29 Mar 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 ?

Risposta accettata

Walter Roberson
Walter Roberson il 29 Mar 2013
S = load('YourFileName', 'Y');
Y = S.Y;

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by