Obtaining a list of (x, y) points that correspond to specific values of concentration that are chosen at random
이전 댓글 표시
Hello,
I need to generate a matrix of points given that they meet the condition that at these (x,y) points concentration is greater than 10. Note that I first run a code that gives me concentration at each location c(x,y,t), and now from the results of the first run I need Matlab to "randomly" pick (x,y) points with the above condition. Also, note the dimensions of the results from the first Matlab run (which the random sampling should be based on): concentration changes with location and time and is 52x61x61, x is 1x61, y is 1x52, and time is 1x61.
I have previously asked this question, and got an answer that allows me to generate a random sample of concentrations that meet the condition, but I don't know how to make the association of these concentrations with the x,y, and t that correspond to these values as per the original Matlab results. For example, for a randomly chosen concentration with a value of 50, what is x and y at which this value is observed?
Would appreciate any suggestions on how to go about this.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!