How to load only one parameter from a .mat file which contains several parameter?

조회 수: 3 (최근 30일)
Hi MATLAB users,
I've got a question which really helps me to do my calculations faster.
Suppose we have a data_collection.mat file which contains:
data1 <351x40x160>
data2 <300x39x200>
data3 <400x50x520>
Suppose a .mat file even bigger in which every time I load, it takes tremendous amount of time. But in fact I need only one of parameters (such as data1). Is there any way to load ONLY this and ignore the other? By that the desired data will load much faster.
Thanks so much in advance,
Mehdi

채택된 답변

Chandra Kurniawan
Chandra Kurniawan 2011년 12월 30일
S = load('data_collection.mat', 'data1')
  댓글 수: 4
Chandra Kurniawan
Chandra Kurniawan 2011년 12월 30일
@Mehdi : Or you can alternate
load('data_collection.mat', 'data1') directly

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by