S-Function Builder - Integer and decimal part
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using S-Function Builder and I am trying to extract the integer and the decimal part of an inserted signal by using the modf function like that:
- *ref_decimal_up = modf(*ref_up, &*ref_integer_up);
It seems that this method doesn't work. I have tried also this:
- int* ref_integer_up = (int*)ref_up;
- double* ref_decimal_up = *ref_up - *ref_integer_up;
Unfortunately that doesn't work either. Do you have any idea?
Thank you in advance!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!