z = x/y

1 次查看(过去 30 天)
Chao Hu
Chao Hu 2017-6-29
how can I use the Divide model to generate coder as z = x/y
  1 个评论
Walter Roberson
Walter Roberson 2017-6-29
? It should do it automatically if you have one of those blocks.
You are asking how to have a MATLAB call somehow take advantage of the code generation available from a Divide block even when you are not using a Simulink model?
Are x and y scalars are are they matrices? Are you wanting to do element-by-element division, or linear algebra with the MATLAB / (mrdivide) operator?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!