フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to create an mfile in my app in the working directory?

1 回表示 (過去 30 日間)
farzad
farzad 2020 年 3 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi All
I have a code in my app and want it also to create an mfile with some lines in a folder I want and then run it. How is this possible ?
and how do I write a line that it can save an already open figure ?
I tried :
txt=str(saveas(f,'test','jpg'));
edit file.m
FID=fopen('file.m',w);
fprintf(FID, '%s', txt);
fclose(FID);
run('file')
  4 件のコメント
Image Analyst
Image Analyst 2020 年 4 月 2 日
That code looks like nonsense. What are you trying to do with the saveas() function?
farzad
farzad 2020 年 4 月 5 日
I tried to save an open figure via matlab but this did not work after compiling. I resolved it . It was actually working inside the app

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by