z = x/y

1 vue (au cours des 30 derniers jours)
Chao Hu
Chao Hu le 29 Juin 2017
Commenté : Walter Roberson le 29 Juin 2017
how can I use the Divide model to generate coder as z = x/y
  1 commentaire
Walter Roberson
Walter Roberson le 29 Juin 2017
? 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?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!