Load variable from mat file

조회 수: 15 (최근 30일)
Collet Bastien
Collet Bastien 2013년 3월 29일
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