Convert algorithm code to simulink model

조회 수: 1 (최근 30일)
Suma
Suma 2014년 3월 19일
댓글: bouchra ayoubi 2015년 3월 3일
Hi,
Is it possible to convert Matlab code algorithm into Simulink model?
Thanks

채택된 답변

Chandrasekhar
Chandrasekhar 2014년 3월 20일
Suma, Please find the attached model. I hope this will help you

추가 답변 (3개)

Viju
Viju 2014년 3월 19일
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
Viju
Viju 2014년 3월 20일
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 2014년 3월 20일
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

댓글을 달려면 로그인하십시오.


Suma
Suma 2014년 3월 20일
편집: Suma 2014년 3월 20일
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
bouchra ayoubi
bouchra ayoubi 2015년 3월 3일
hello , Suma ... find you the answer ? because i have the same problem

댓글을 달려면 로그인하십시오.


Suma
Suma 2014년 3월 20일
thanks, one more question though- is there any tutorial on the thing you have done?

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by