normalization data to 0-255
Mostrar comentarios más antiguos
Hello eveyone ı have dataset which is this:

ineed to normalize each data to 0 to 255 .
my code :
T = dataset;
K=[,];
N=[,];
[row,col]= size (T);
for i=1:row
for j=1:col -1
K(i,j)=(table2array(T(i,j)));
N(i,j) =uint8(255*mat2gray(K(i,j)));
j=j+1;
end
i=i+1;
end
disp(N);
but when ı try to convert witn in for loop .ı got an output like this .almost all data was converted to 255 .
thx in advance

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
