Load variable from mat file

17 visualizaciones (últimos 30 días)
Collet Bastien
Collet Bastien el 29 de Mzo. de 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 ?

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Mzo. de 2013
S = load('YourFileName', 'Y');
Y = S.Y;

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by