필터 지우기
필터 지우기

loading a dataset (S=load('file_name'), how?

조회 수: 5 (최근 30일)
Ken
Ken 2011년 9월 30일
I have a 512*513 matlab dataset, saved as "file_name.mat". If I use load('file_name'), I can have the dataset loaded as 'data'. But I want it to be named as "S", and tried to use S=load('file_name'), but "S" has the structure informations only.
How can I load 'file_name' in 'S'? thanks!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 9월 30일
Once you loaded,
S=data;
clear data;

추가 답변 (1개)

Daniel Shub
Daniel Shub 2011년 9월 30일
Even better would be
temp=load('file_name');
S = temp.data;
clear temp;
  댓글 수: 1
Ken
Ken 2011년 9월 30일
THANKS! This works, and clear!!

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

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by