mtimes error when multiply a constant with a matrix
1 view (last 30 days)
Show older comments
[maxF loc]=max(F(:));
[row col]=size(F);
%create a matrix max
G=(128-maxF).*ones(row,col);
??? Error using ==> times
Integers can only be combined with
integers of the same class, or scalar
doubles.
Error in ==> Mor at 24
G=(128-maxF).*ones(row,col);
help me
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!