필터 지우기
필터 지우기

Load variable as

조회 수: 1 (최근 30일)
Graziano
Graziano 2011년 2월 1일
Dear all, currently if I want to change the name of a variable stored in a .mat file I have first to load it and then change its name, once loaded in the workspace. This imply that if I already have a variable with the same name, maltlab overwrite it.
Question: is there a way to change the name on the fly while importing? I.e. a kind of load('test.mat','hi') as 'hello'.
Thank you

답변 (1개)

Paulo Silva
Paulo Silva 2011년 2월 1일
hello=load('test.mat','hi')
hello.hi

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by