I am not too familiar with MATLAB, but iirc, 4 byte integers at least in my architecture can be stored as unsigned long variables. What data types are available for you in MATLAB.
I am not too familiar with MATLAB, but iirc, 4 byte integers at least in my architecture can be stored as unsigned long variables. What data types are available for you in MATLAB.
Pretty much all the data types that available in C.
Matlab provides an mex C compiler and you write everything as if it was regular C (if there is such a thing, I'm a bit of a newbie). The only difference is that the main() is executed afresh on each time step of the matlab model so static variables must be used to avoid losing data between steps. Aside from that it is C.
Really I'm confused as how I can split my integer value into 4 bytes?