Effacer les filtres
Effacer les filtres

covert matlab program to simulink block

4 vues (au cours des 30 derniers jours)
shiksha
shiksha le 18 Fév 2014
hi all, i am constructing a feedback loop in simulink . the loop contains certain matlab programs. i want to know whether i can implement the matlab code or the executable file in simulink block so that it executes in simulink.
thanks in advance.
with regards, shiksha
  1 commentaire
shiksha
shiksha le 19 Fév 2014
Hi all, Thanks for the reply. I actually want to do some image processing(SIFT) in the block to get some variables. So it requires a group of programs not just one program or function. So is there any way to do it?
regards, shiksha

Connectez-vous pour commenter.

Réponse acceptée

Anuj
Anuj le 18 Fév 2014
You can use MATLAB Function. Go through this- MATLAB Function

Plus de réponses (2)

Mischa Kim
Mischa Kim le 18 Fév 2014
Shiksha, yes, provided I correctly understand your question.
You can include MATLAB functions in Simulink models (e.g., by using a MATLAB function block from the library [User-Defined Functions]). When you run the Simulink model the model-embedded MATLAB functions are automatically executed.
Does this answer your question?
  2 commentaires
shiksha
shiksha le 19 Fév 2014
Hi mischa, Thanks for the reply. I actually want to do some image processing(SIFT) in the block to get some variables. So it requires a group of programs not just one program or function. So is there any way to do it?
regards, shiksha
Mischa Kim
Mischa Kim le 20 Fév 2014
Absolutely. You can have multiple MATLAB functions inside a Simulink model, simply drag the MATLAB function block from the Library as many times as you need, or, copy-paste the block inside the model.
You can also call MATLAB functions (say, e.g., from one of these functions blocks) that are not part of the Simulink model.

Connectez-vous pour commenter.


Muruganandham Subramanian
Muruganandham Subramanian le 21 Fév 2014
Try using 's-function' block (Level-1).

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by