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 Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by