hi guys, can i edit a .sfx file by matlab scripts?

3 visualizaciones (últimos 30 días)
Joe
Joe el 17 de Sept. de 2025
Editada: Joe el 17 de Sept. de 2025
i want to select file in 'pattern', can i finish this by scirpts?

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Sept. de 2025
It is possible to edit a .sfx file by using a script. .sfx files are zipped XML files, so you would unzip the .sfx file, edit the resulting XML, and zip the result back up.
More likely you want to use a script to edit a model and save the model as sfx file. Many aspects of models can be altered by using set_param and related commands; https://www.mathworks.com/help/simulink/configuration-sets.html?s_tid=CRUX_lftnav
  1 comentario
Joe
Joe el 17 de Sept. de 2025
Editada: Joe el 17 de Sept. de 2025
thanks Roberson! actually i want to generate graph by a defined .m function automatically. I find that Pattern Wizard can do this, but i dont know if there are APIs for Pattern Wizard. Just like the tutorial below, can i do this by API?

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by