Can I use matlab callback function in c++ engine API?

2 ビュー (過去 30 日間)
Su Riyu
Su Riyu 2023 年 4 月 11 日
回答済み: Akash 2024 年 10 月 15 日
For example I make a c++ application using c++ engine API to draw some figures.
I need to get the mouse position [ x y ] in my c++ application when the user clicks on the figure, or implement some graph interaction by callback function. Can I do these job with c++ engine API?
Thanks!

回答 (1 件)

Akash
Akash 2024 年 10 月 15 日
Hi Su,
You can call MATLAB functions from a C++ application using the MATLAB Engine API for C++. This API facilitates communication between C++ and MATLAB, allowing you to launch MATLAB, evaluate MATLAB functions with specific arguments, and exchange data between the two environments.
For more information on how to call MATLAB functions from C++, you can refer to the following documentation:

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by