I'm doing a project that involves taking in data from an EMG, running it through a function in Matlab, and sending commands to a series of motors. The motors take a series of 2 hex numbers, one 2 digits, one 4 digits preceded by the letter d. For example, d0103FF. My question is, how can I write a series of functions that takes the difference between two numbers, converts it to a zero padded four digit hexadecimal, and then tacks it onto the end of dXX where X is another number.
MATLAB: Functions to combine two hexadecimal numbers
combined numberscommunicationhexadecimalmotor command
Related Question
- Storing a binary number with leading zeros in a struct field
- How to use hexadecimal format for parameter values in xPC Target
- Sir, I want to convert hex string to hex, and convert to int16.
- Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)
- Reformat numbers in table
- Adding Hexadecimal numbers
Best Answer