MATLAB support package for arduino hardware

6 ビュー (過去 30 日間)
Omkar Bhanap
Omkar Bhanap 2018 年 1 月 28 日
コメント済み: Walter Roberson 2018 年 1 月 29 日
Is it possible to create standalone application of Arduino board using MATLAB code ?

採用された回答

Omkar Bhanap
Omkar Bhanap 2018 年 1 月 29 日
編集済み: Omkar Bhanap 2018 年 1 月 29 日
I'm getting problem while using interp1() function. It is not supporting code generation.Any alternative for this?

その他の回答 (1 件)

Sebastian Castro
Sebastian Castro 2018 年 1 月 28 日
It is not directly possible... but if you have a pre-existing MATLAB function or you're more comfortable with text-based programming, you can call MATLAB code in Simulink using a "MATLAB Function block.
So long as you use the subset of MATLAB language/functions supported for C code generation, you should be fine.
- Sebastian
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 28 日
However, the calls such as writeDigitalPin do not appear to be supported for code generation, so you would need to use Arduino blocks to do the I/O to get this to work.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevice Driver Blocks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by