What is the different between int_T in matlab S-function or mexfunction and int_t in C?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Syarif Hidayatullah
il 13 Ott 2017
Commentato: Syarif Hidayatullah
il 18 Ott 2017
I am currently learning both C++ and matlab S-Function and these alike yet different data types confuse me.
0 Commenti
Risposta accettata
Prashant Arora
il 18 Ott 2017
int_T, real_T (upper case T) are data types used by MATLAB and Simulink and are defined in shipped file "tmwtypes.h". They prove more flexibility in terms of platform dependency. For example real_T can switch types for 32 or 64 bit systems. To define a custom S-Function in C, you need not use any of these data types and can use standard ones like int, double etc.
I think you can also use int_t (small case t) in your code as long as those definitions are provided to MATLAB.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Block and Blockset Authoring in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!