Why won't all my data show up in the output image and only some of the data?

4 次查看(过去 30 天)
Hello,
I have a problem with my matlab-script and can't seem to find a solution to this. As you can see in the picture "Output image" that i have attached, there are for some reason areas in the image where the data aint registered and show no colors that represent a value (marked in red circle) compared to the other places where the data are registered and show a color value. I tried to have 6 different note-files with data (each note-file represents each section) instead of having all data placed in one note-file, but that i couldn't do for some reason. So now i dont know what to do... maybe I did a error somewhere?
Explanation about the image and the symbols:
  • Black dots describes that there is a Tree and the size of the black dot shows how big the tree is in diameter. The bigger the black dot is, the bigger thickness the tree have.
  • Blue and Green dot are just there to have a certain location to go after when placing the locations of each symbol (not important).
  • X- symbols means data-point locations. Shows the location on where I have taken data from and therefor each X symbol have its own TDR value. There are 6 lines of X's which means 6 different sections.
  • The colored regions are based on TDR values. TDR values describes how wet the soil is, so higher values means wetter soil.
The problem here is that I have data for all the X-symbols (except from the first and last X-symbol in each line) placed in one note-file called "Samlet_Section_A.txt", but for some reason in some areas (marked by red circles in the attached image) there aint any data showing (no colors are present which mean no values are registered).
Hope you guys can help. Have attached the script and notes that are used in the script.

采纳的回答

Lukas Samuelsen
Lukas Samuelsen 2021-2-12
I found the solution with help of my friend. If NaN lines meet each other in the note file it will interrupt the data rest of the data and that's why there was missing data in some areas.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by