Load variable from mat file

9 views (last 30 days)
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 ?

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!