我在matlab6.5中运行:
xzs=uint8(X+uint8(intensity2*randn(size(X))));
出现错误提示:
??? Error using ==> +
Function '+' is not defined for values of class 'uint8'.
Error in ==> C:\MATLAB6p5\work\add_noise.m
On line 25 ==> xzs=uint8(X+uint8(intensity2*randn(size(X))));