z = x/y

조회 수: 1 (최근 30일)
Chao Hu
Chao Hu 2017년 6월 29일
댓글: Walter Roberson 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에서 代码生成에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!