Is there a way to save a .mat file with a variable as a filename?

조회 수: 1 (최근 30일)
Hello!
I have a variable defined in my workspace.
Example:
sitename =
US-FR2
How could I save a .mat file with this as the filename (US-FR2.mat), without typing it in manually?
Mil gracias

채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 5일
save(sitename);

추가 답변 (1개)

Kate
Kate 2013년 6월 5일
Thanks

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by