Load variable from mat file

17 次查看(过去 30 天)
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 ?

采纳的回答

Walter Roberson
Walter Roberson 2013-3-29
S = load('YourFileName', 'Y');
Y = S.Y;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by