MATLAB: Why this type of error

puting raw image in code this is the errror

Error using readMatrix (line 40)
read only 65528 complex values instead of 800381505
Error in napoli1 (line 53)

Best Answer

  • That took a bunch of searching.
    You appear to be using readMatrix from a chirp scaling program at pudn
    The code is expecting binary files, single precision floating point. It appears to expect the real part for all of the echos to be first, and then the imaginary parts for all of the echos. It expects the raster width to be the second set of 4 bytes in the raw file. It appears, though, that instead of a raw file with the expected format, that the second four bytes of your raw file contains the single precision number 27.33798 .