Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
farzad
farzad el 30 de Mzo. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
Image Analyst
Image Analyst el 2 de Abr. de 2020
That code looks like nonsense. What are you trying to do with the saveas() function?
farzad
farzad el 5 de Abr. de 2020
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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by