How can we create simulink block using .m file ?

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

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일

0 개 추천

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.
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개)

카테고리

도움말 센터File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

질문:

2017년 4월 6일

댓글:

2017년 8월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by