フィルターのクリア

Output Command Window and Figures to File with MATLAB Online?

1 回表示 (過去 30 日間)
Erin Winkler
Erin Winkler 2017 年 7 月 26 日
コメント済み: Erin Winkler 2017 年 7 月 26 日
Hi all,
I would like to export my command window and figures for my data analysis program to a file (probably a text file). I tried using diary, however, the 'dairy' command is not supported for MATLAB Online. I also attempted to use the 'matlab' command (matlab -logfile filename.log) which also failed.
Additionally, I would like to save the files with a name like "Results_25-Jul-2017" where the date (str = date) is a variable that changes for the date the analysis occurs.
Any ideas?
Thanks! E

回答 (2 件)

Steven Lord
Steven Lord 2017 年 7 月 26 日
Would publishing your results to HTML or PDF be acceptable? The published output would contain "Results of running the code, including figures and Command Window output" which is what you said you wanted the output file to contain.

Restu Nopiandi Irawan
Restu Nopiandi Irawan 2017 年 7 月 26 日
did you make it without mfile?
  1 件のコメント
Erin Winkler
Erin Winkler 2017 年 7 月 26 日
I'm not 100% sure on what you mean...I'll try to explain enough to hopefully give you enough information. I have a mother function (.m) which calls about 6 other functions (all I've written and work for what I need) but the code runs like a phylogentic tree so if the data fits one category, it undergoes a different analysis than data fitting a different category. So I have many strings (and different amounts og strings) that are written to the command window based on the category of the data.
Is there a way you might know or ideas you have to save the strings and figures generated by the code into a file for export? 'diary' seems like the best option, however, as I said, it doesn't work with online.
Does that clarify anything? I hope it does.

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by