필터 지우기
필터 지우기

saving workin space variable

조회 수: 2 (최근 30일)
Raviteja
Raviteja 2011년 11월 10일
I executed my file which consists 20 variables (stored in the workspace after execution). I want to save 1 variable called myvar.mat to save into my working directory.
So I used
>>save('myvar.mat')
but it stored all the 20 variables with name myvar.mat.
To save single variable what I have to do?

채택된 답변

per isakson
per isakson 2011년 11월 10일
Doc says:
save(filename, variables)
try
save('myfile.mat', 'myvar' )

추가 답변 (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