converting M-file into a block function in simulink

2 visualizaciones (últimos 30 días)
dong van duc
dong van duc el 15 de Ag. de 2012
Respondida: karishma kousar el 1 de Abr. de 2016
hello can you show me how to move "file.m" into a function block in simulink thank you!
  2 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 15 de Ag. de 2012
what do you mean?
dong van duc
dong van duc el 15 de Ag. de 2012
I want to know all the "file.m" transformed into a block in "simulink"?

Iniciar sesión para comentar.

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 15 de Ag. de 2012
Editada: John Kelly el 26 de Feb. de 2015
You can call the function from any of three MATLAB Function blocks.
  10 comentarios
Kaustubha Govind
Kaustubha Govind el 22 de Ag. de 2012
Please start a new question and paste your code and the error message with the stack as well.
dong van duc
dong van duc el 23 de Ag. de 2012
Editada: dong van duc el 23 de Ag. de 2012
yes, I created a new question.

Iniciar sesión para comentar.

Más respuestas (2)

Youssef Haical
Youssef Haical el 5 de Sept. de 2014
Editada: Youssef Haical el 5 de Sept. de 2014
i made it but this answer is not clear ,,,, please try to show us just how we can add the initial values to run the simulink model without opening the command window and writing the values and then we run the simulink model
for example : i have this initial parameters : Pm=100e3; Flux=200; Ts=2e-5; p=2 ; N=2; f=50;
i need to make them inside of my simulink model without writing them in m-file or in command window
please help me

karishma kousar
karishma kousar el 1 de Abr. de 2016
hello sir i have a matlab code for face detection but i dont know how to do the simulink blocks,please any one can help me in this designing a simulink model for my matlab code

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by