Thread: Byte Array / Integer conversion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    404
    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.

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    2
    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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Converting character array to integer array
    By quiet_forever in forum C++ Programming
    Replies: 5
    Last Post: 04-02-2007, 05:48 AM
  3. Need some help regarding data structures
    By Afrinux in forum C Programming
    Replies: 15
    Last Post: 01-28-2006, 05:19 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM