Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to create an mfile in my app in the working directory?
2 次查看(过去 30 天)
显示 更早的评论
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
2020-4-2
That code looks like nonsense. What are you trying to do with the saveas() function?
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!