I have written code to produce 30 (approx) numeric matrices, all of which I wish to save to a given directory under a single .mat name. What code can be written within the script to save the entire workspace automatically?

 채택된 답변

Walter Roberson
Walter Roberson 2021년 10월 19일

1 개 추천

save('NameOfFileToSaveTo.mat')

댓글 수: 1

Sam Hurrell
Sam Hurrell 2021년 10월 20일
That saves the workspace to the current folder, how would I save it to a defined location?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 10월 19일

댓글:

2021년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by