how to automatically save the workspace data in programs containing loops

7 ビュー (過去 30 日間)
amrinder
amrinder 2013 年 5 月 21 日
Hello everybody;
I am running a script which contain (for - end loops) and require a long time for processing and plotting the data.
I want that for each loop, the corresponding data/values to be generated in workspace to be saved automatically giving desired name and at desired location on hard disk (such that if 6 different files are plotted then 6 different value set in workspace be stored on hard disk)
This will help me to not run the script again but could use the saved values to run other program....
Thanx...
Waiting for the reply...
  3 件のコメント
Jan
Jan 2017 年 2 月 27 日
@safna: Please do not attach a question as comment to another question. Open a new thread and provide more details. Thanks.
Abdennasser TACHEMA
Abdennasser TACHEMA 2020 年 9 月 1 日
@safna yazhini
Hello, I have the same problem.
Please, did you solve this problem.

サインインしてコメントする。

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 21 日
You can use save function to save your variables in a mat-file

amrinder
amrinder 2013 年 5 月 21 日
thanx for the reply; but i may have not make myself clear about the question.
The save option can be used but it could only save the last workspace data value.
If i have run 10 loops in which in each loop i got 15(say) values stored in workspace, so i want that all the 15 values of first loop in workspace get saved before the program runs the second loop and then saving the similar data for second loop.
I cant interrupt the program until all the 10 loops run.
  1 件のコメント
Abdennasser TACHEMA
Abdennasser TACHEMA 2020 年 9 月 1 日
Hello, I have the same problem.
Please, did you solve this problem.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by