Azzera filtri
Azzera filtri

Type conversions to 'real_T'

5 visualizzazioni (ultimi 30 giorni)
Timothy Wold
Timothy Wold il 17 Giu 2011
Commentato: Liming Gao il 22 Mag 2022
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 Commenti
Kaustubha Govind
Kaustubha Govind il 17 Giu 2011
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 il 22 Mag 2022
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Schedule Model Components in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by