save a mat-file in a specific folder
조회 수: 112 (최근 30일)
이전 댓글 표시
I have 2 matrices mat1 and mat2
I wanted to save these two variables in a specific folder in the name my_matrices
When using the below code the mat-file is getting saved in the current working folder itself.
save my_matrices mat1 mat2
I wanted to save the mat-file in the current folder Folder1/Subfolder1
Please can someone show me how to save it the specified folder by giving the pathname
댓글 수: 0
채택된 답변
Ayse Nur
2022년 8월 5일
Hi,
you can save mat-files with this command
save Folder/subfolder/my_matrices.mat mat1 mat2
I hope it helps you :)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!