Plot a graph on iOS app using Matlab Coder

Hello,
I am trying to run an iOS app using Matlab Coder by converting the code to C, which I can then use directly for my app. My Matlab code has a graph that is drawn/plotted as the time spans. Is it possible to have this plotting feature on iOS device directly from Matlab Coder or Would I need a separate graphics library in iOS for this??
Thanks.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 15 日

0 投票

MATLAB Coder cannot generate graphics itself. Your code would need to have calls to routines that on the C/C++ side were filled in with calls to a graphics library you linked against. In the more general case, Simulink Coder appear to know how to do graphics for some target blocks, but as far as I recall, iOS is not one of the Targets supported by Simulink.
MATLAB Coder generates code to standard C or C++ libraries. There is no graphics standard as part of the C or C++ standard, and there are multiple competing graphics standards (e.g., DirectX, OpenGL, Carbon) for operating systems that support graphics.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Coder についてさらに検索

製品

質問済み:

2016 年 1 月 14 日

回答済み:

2016 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by