Borrar filtros
Borrar filtros

How can we create simulink block using .m file ?

2 visualizaciones (últimos 30 días)
Neha P
Neha P el 6 de Abr. de 2017
Comentada: Anuja Vats el 1 de Ag. de 2017
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 comentario
Anuja Vats
Anuja Vats el 1 de Ag. de 2017
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.

Iniciar sesión para comentar.

Respuesta aceptada

User_in_Gim
User_in_Gim el 6 de Abr. de 2017
Maybe you can find what you want with S-Function or Matlab function in the User-definied Functions library.
  2 comentarios
Neha P
Neha P el 6 de Abr. de 2017
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 el 6 de Abr. de 2017
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).

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by