save a mat-file in a specific folder

64 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2022 年 8 月 5 日
回答済み: Ayse Nur 2022 年 8 月 5 日
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

採用された回答

Ayse Nur
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 件)

カテゴリ

Help Center および File ExchangeWorkspace 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