Help! Evaluation of csv measurement data

3 visualizaciones (últimos 30 días)
Meike
Meike el 24 de Nov. de 2021
Comentada: Meike el 26 de Nov. de 2021
Hello dear ones,
unfortunately I am a total Matlab beginner and I really need to evaluate my measurement data with Matlab.I want to import height data from a grid (picture), which was taken with a microscope, in csv format as a matrix and then evaluate it.After reading in the data, values above a certain limit are to be set to 0 or above the limit to 1. The bars should only consist of 1s and he should then count, for example, how many 1s come in sequence, so that you can convert this to a length.
Finally, the bars of the grid are to be measured and output as an Excel file.
This is how I started:
M = readmatrix('Dataname.csv','NumHeaderLines', 52);
ii=M<=10000;
M(ii)=0;
ii=d
The probelm is he changes rows and columns and when the plot, the image is mirrored.
Can you continue to calculate with "logical" and evaluate measurement data?
I would be super happy for any help!!!
  3 comentarios
Meike
Meike el 24 de Nov. de 2021
Here is part one of the csv data. It was too large, so i had to cut it into 2.
Thank you very much!!!
Meike
Meike el 24 de Nov. de 2021

Iniciar sesión para comentar.

Respuestas (1)

Mathieu NOE
Mathieu NOE el 25 de Nov. de 2021
hello Meike
seems what you looking for is just a fraction of the full M array
if you plot the full M array , we get this
M = readmatrix('Dataname.csv','NumHeaderLines', 52); % size M : 3912 x 934
imagesc(M)
colormap(jet)
axis square
if I restrict to lines 1900 to end ( = 3912) , then we get the lower half => the picture you wanted
code
imagesc(M(1900:end,:))
colormap(jet)
axis square
plot
  2 comentarios
Image Analyst
Image Analyst el 25 de Nov. de 2021
What do you want? The heights and widths of the dark blue boxes?
Meike
Meike el 26 de Nov. de 2021
No, the narrow yellow/green bars of the grid are to be measured vertically and horizontally.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by