Load variable from mat file

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일

0 개 추천

S = load('YourFileName', 'Y');
Y = S.Y;

추가 답변 (0개)

카테고리

도움말 센터File 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