Home › Forums › Forums › Technical Support for BerryIMU › BerryIMU and Matlab › Reply To: BerryIMU and Matlab
bin2dec() doesn’t work. I get an error “Input must be a character vector”. I have a resource for matlab support.
I just want to clarify, in the Python code (im using that for reference) you supply a GNU binary literal for the value to enable correct? Looking through the data sheet it seems that that is what is needed.
Also, what is the type for the return value when I’m reading from the gyro for the high low registers? should they be decimal as I’m getting now?
I haven’t used Matlab before, so I am taking a guess here.
Maybe you need to convert the binary to decimal
writeGYR(IMU, hex2dec(’21’), bin2dec(‘00110000`));