save a mat-file in a specific folder
91 次查看(过去 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!