Question: need help in matlab coding. This is the previous code: quantized _ N = zeros ( size ( N ) , 'uint 8 ' )

need help in matlab coding. This is the previous code: quantized_N = zeros(size(N), 'uint8'); % Initialize the quantized image matrix
% Loop over all rows and columns of the image matrix
for i =1:size(N,1)
for j =1:size(N,2)
if N(i, j)>=0 && N(i, j)=64
N(i, j)=0;
elseif N(i, j)>=65 && N(i, j)=128
N(i, j)=1;
elseif N(i, j)>=129 && N(i, j)=192
N(i, j)=2;
else
N(i, j)=3;
end
end
end
 need help in matlab coding. This is the previous code: quantized_N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!