필터 지우기
필터 지우기

Type conversions to 'real_T'

조회 수: 5 (최근 30일)
Timothy Wold
Timothy Wold 2011년 6월 17일
댓글: Liming Gao 2022년 5월 22일
Received the following error in utilizing legacy C-code with the S-builder function.
error C2440: 'function' : cannot convert from 'real_T' to 'double *'
Is their simple solution for this conversion to the 'real_T' type?
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2011년 6월 17일
I think the issue might be your assignment of a value to a pointer type. Could you try first dereferencing your LHS and then assign whatever real_T value to it?
Liming Gao
Liming Gao 2022년 5월 22일
The arguments of functions in s-function builder is vector. So you may need to assign the value using vector method. For example, use a[0] = x[0] to assign value of x to a double vector variable a, where x is input variable of a function in s-function builder.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by