How can we create simulink block using .m file ?

4 ビュー (過去 30 日間)
Neha P
Neha P 2017 年 4 月 6 日
コメント済み: Anuja Vats 2017 年 8 月 1 日
I have written a compression code in matlab which I have to run it on Raspberry pi. My project consists of many .m files and want to create my own blocks and come out with Simulink model. Is there any way to create own Simulink blocks and set our own parameters?
  1 件のコメント
Anuja Vats
Anuja Vats 2017 年 8 月 1 日
I am doing something similar to you, have an image processing algorithm as m file (calling other functions in it) to be run on raspberry pi stand alone. Pleas let me know what worked best for you for creating the simulink model.

サインインしてコメントする。

採用された回答

User_in_Gim
User_in_Gim 2017 年 4 月 6 日
Maybe you can find what you want with S-Function or Matlab function in the User-definied Functions library.
  2 件のコメント
Neha P
Neha P 2017 年 4 月 6 日
Thank you. 1. In my single .m file i have called many functions. Whether S-fun or Matlab function can handle this? 2. I have a script and in that, I have called a function. Which block in Simulink will be suitable to begin my compression algorithm.
User_in_Gim
User_in_Gim 2017 年 4 月 6 日
S-Function will do the job, actually I'm using this block to call some of my c functions ( one function calling all he others).

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by