converting M-file into a block function in simulink

조회 수: 2 (최근 30일)
dong van duc
dong van duc 2012년 8월 15일
답변: karishma kousar 2016년 4월 1일
hello can you show me how to move "file.m" into a function block in simulink thank you!
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2012년 8월 15일
what do you mean?
dong van duc
dong van duc 2012년 8월 15일
I want to know all the "file.m" transformed into a block in "simulink"?

댓글을 달려면 로그인하십시오.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 8월 15일
편집: John Kelly 2015년 2월 26일
You can call the function from any of three MATLAB Function blocks.
  댓글 수: 10
Kaustubha Govind
Kaustubha Govind 2012년 8월 22일
Please start a new question and paste your code and the error message with the stack as well.
dong van duc
dong van duc 2012년 8월 23일
편집: dong van duc 2012년 8월 23일
yes, I created a new question.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Youssef Haical
Youssef Haical 2014년 9월 5일
편집: Youssef Haical 2014년 9월 5일
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 2016년 4월 1일
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

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by