Integers can only be combined with integers of the same class, or scalar doubles
Error using –
Integers can only be combined with integers of the same class, or scalar doubles.
Error in Code (line 27)
data = data – repmat(mn,1,N);
Here is the code snip, where I am subtracting off the mean of some matrices:
mn = mean(data,2);
data = data – repmat(mn,1,N);
I tried casting the new data matrix to an int16 but that gave the same error, not sure what to cast it to, to avoid error.Error using –
Integers can only be combined with integers of the same class, or scalar doubles.
Error in Code (line 27)
data = data – repmat(mn,1,N);
Here is the code snip, where I am subtracting off the mean of some matrices:
mn = mean(data,2);
data = data – repmat(mn,1,N);
I tried casting the new data matrix to an int16 but that gave the same error, not sure what to cast it to, to avoid error. Error using –
Integers can only be combined with integers of the same class, or scalar doubles.
Error in Code (line 27)
data = data – repmat(mn,1,N);
Here is the code snip, where I am subtracting off the mean of some matrices:
mn = mean(data,2);
data = data – repmat(mn,1,N);
I tried casting the new data matrix to an int16 but that gave the same error, not sure what to cast it to, to avoid error. image processing, image analysis, code MATLAB Answers — New Questions