フィルターのクリア

Send real-time data from .m script to simulink

4 ビュー (過去 30 日間)
Nathanael Virlian Wijaya
Nathanael Virlian Wijaya 2022 年 10 月 20 日
回答済み: Taru 2022 年 11 月 25 日
Hi,
So I am trying to do an image processing (live from a webcam) in a .m file in MATLAB. from this file, I would like to send a real-time data (float) to simulink. How do I do this?

回答 (1 件)

Taru
Taru 2022 年 11 月 25 日
Hello Nathanael,
I gather that you want to perform image processing on the live input and then import the output floating point data saved in MATLAB into Simulink.
As you have the image processing scripts in the MATLAB script with extension ‘.m’, and after executing the file, the output is stored in workspace variables. To get the workspace variable values onto Simulink, you must save them into ‘. mat’ file.
Please refer the link to know how to store data in a ‘. mat’ file.
Simulink offers ‘From file’ block to perform this operation of importing ‘. mat’ file into Simulink. See this documentation for help.
Hope it resolves your query.

カテゴリ

Help Center および File ExchangePrepare Model Inputs and Outputs についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by