Choose manually 1 out of 4 subplots which looks "best"
조회 수: 3 (최근 30일)
I am working on an experiment data where the latter are matrices storing topography elevations (DEMs).
For specific defined points, I am extracting cross-sections (elevaiton vs. distance) from that DEM, but would
like to choose the best direction out of a total of 4 options.
I'd first like to plot the 4 scenarios using subplot(2,2,i) where i runs from i = 1 to i = 4.
Then, I'd like to somehow choose which scenario out of the four options is the "best",
where this decision is subjective (i.e., I choose it by looking at the plot and then perhaps clicking on the one subplot which corresponds to this decision).
Any idea how to go about that?
Vilém Frynta 2023년 2월 7일
편집: Vilém Frynta 님. 2023년 2월 7일
I'm sure there are more options and ways to do it.
My idea is that at the end of the script, you would use input function. In console, you will then enter a number from 1–4, which would then result in opening another figure and plotting chosen scenario.
However, this depends on how you store your variables, which I am not very aware of. But if you are plotting with the use of for loop, this could work.
for q = 1:4
N = input("Which figure do you like?")
% N = number of your choice, between 1-4
Hope I helped a bit.