필터 지우기
필터 지우기

matlab to C using rtInf

조회 수: 1 (최근 30일)
Emrah Duatepe
Emrah Duatepe 2018년 1월 9일
편집: Walter Roberson 2018년 1월 9일
Hi guys ,I want to use rtInf in my application and simple example below.If oarg= number/0 ,I will print screen inf ,how the codes will sense this situation.What can I do?
void ciz(const double t[32], double oarg[32])
20 {
21 int k;
22 for (k = 0; k < 32; k++) {
23 oarg[k] = t[k] * t[k];
24 }
25
26 if (oarg[31] == rtInf) {
27 oarg[30] = 1.0;
28 }
29 }

답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by