Load variable from mat file

15 vues (au cours des 30 derniers jours)
Collet Bastien
Collet Bastien le 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 ?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by