Hello everyone and thanks in advance!
I'm having problems with fi function (Matlab function to convert data to fixed point type). I am using Matlab R2015a.
When I use this function with a vector, the view in the workspace is incorrect from 65.
The view runs in a loop, repeating the same data every 64 components, so the view in the work area is correct only in the first 64 components of the vector. Nevertheless, the data in each component in the vector is correct, if I print information or copy and paste its value, it differs (and is more correct) from the representation in the workspace. Here is the code I used:
clear all;close all;
rawWidth=16;
rawFracLen=0;
rawIsSigned = false;
rawBinType = numerictype('WordLength',rawWidth,'FractionLength',rawFracLen);
rawBinType.Signed = rawIsSigned;
N=10000;
x=rand(1,1000)*N;
A=fi(x,'numerictype',rawBinType);
- , ? script, .
,