필터 지우기
필터 지우기

simulink s block using matlab to read input fromarduino

조회 수: 3 (최근 30일)
peter bennett
peter bennett 2017년 1월 15일
답변: Vishal Neelagiri 2017년 1월 17일
Hi, I have written some Matlab code saved as a .m file. The code reads touch events on a touch screen. I need to convert this to a Simulink block. I was going to try to use the msfuntmpl_basic is this the best way to or is there a better way. I have searched numerous sources to find instructions but have failed to locate anything of use. Could someone even point me in the right direction please. Thanks Peter

답변 (1개)

Vishal Neelagiri
Vishal Neelagiri 2017년 1월 17일
According to your workflow, you can use the MATLAB function block or the Level-2 MATLAB S-Function block to use MATLAB code in Simulink. You can refer to the following documentation links:
https://www.mathworks.com/help/simulink/slref/matlabfunction.html
https://www.mathworks.com/help/simulink/slref/level2matlabsfunction.html
https://www.mathworks.com/help/simulink/sfg/writing-level-2-matlab-s-functions.html

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by