Effacer les filtres
Effacer les filtres

Convert algorithm code to simulink model

3 vues (au cours des 30 derniers jours)
Suma
Suma le 19 Mar 2014
Hi,
Is it possible to convert Matlab code algorithm into Simulink model?
Thanks

Réponse acceptée

Chandrasekhar
Chandrasekhar le 20 Mar 2014
Suma, Please find the attached model. I hope this will help you

Plus de réponses (3)

Viju
Viju le 19 Mar 2014
You can incorporate existing MATLAB script in a Simulink model using MATLAB function blocks. For information on that, take a look at: http://www.mathworks.com/videos/incorporating-matlab-algorithms-into-a-simulink-model-69028.html
  3 commentaires
Viju
Viju le 20 Mar 2014
I don't understand the problem entirely (and perhaps your k is i). Can you elaborate on what exactly you are looking to do?
Chandrasekhar
Chandrasekhar le 20 Mar 2014
Suma, there is not method of converting an mscript to a simulink model. You need to develop the algorithm in simulink based on the mscript

Connectez-vous pour commenter.


Suma
Suma le 20 Mar 2014
Modifié(e) : Suma le 20 Mar 2014
Hi,
I want to build a simulink sub-blocks:
1. a sub block that generates random vectors(2x2 column) for i=1:N
2. another sub-block that acts on each column vectors generated in step1
etc
Do I need to build function script for these? What about the loop?
So, I want to be sure whether function block is the right way and whether there are any alternative approaches.
thanks again
  1 commentaire
bouchra ayoubi
bouchra ayoubi le 3 Mar 2015
hello , Suma ... find you the answer ? because i have the same problem

Connectez-vous pour commenter.


Suma
Suma le 20 Mar 2014
thanks, one more question though- is there any tutorial on the thing you have done?

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by