MATLAB: How to convert all csv file to grayscale image and then save them

image analysisneural network

I have a database of experiment .csv files. how to extract the feature from this csv file with max min normalization? I need a matrix(with values between 0 to 255) to be converted to a gray scale image.

Best Answer

T = readtable('file.csv');
V = T.Variables;
V = V - min(V(:));
V = V ./ max(V(:)) * 255;
Img = uint8(V);
Now the matrix Img is a greyscale image.