how to write function for thessian polygon method in hydrology by using matlab ?
    16 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    ANSHU MALINI
      
 el 28 de En. de 2012
  
    
    
    
    
    Respondida: Pai-Feng Teng
 el 2 de Oct. de 2018
            Consider a rectangular area with vertices ([0,0],[10,0],[10,10] & [0,10]). For the gages given in Table 1, estimate 
(a) Thiessen weights, 
(b) average rainfall using Thiessen weights, and 
(c)average rainfall using arithmetic average. 
Plot the area, gages and associated Thiessen polygons on a figure.
Table 1: Rain Gages
Gage Co-ordinates Rainfall (mm)
A (2,5) 10.0
B (8,4) 7.0
C (5,5) 5.0
D (5,9) 12.0
E (6,1) 2.0
F (9,9) 8.0
1 comentario
  Walter Roberson
      
      
 el 28 de En. de 2012
				http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Respuesta aceptada
  ANSHU MALINI
      
 el 6 de Feb. de 2012
        
      Editada: Walter Roberson
      
      
 el 12 de En. de 2017
  
      
      3 comentarios
  Muhammad Usman Saleem
      
 el 11 de En. de 2017
				@any expert of MATLAB elaborate what are the m and n used in this question?
Please
  Walter Roberson
      
      
 el 12 de En. de 2017
				The code creates an m x n grid and finds the distances between each point in the grid and each of the gages and uses that to figure out the closest gage to each grid point. The number of grid points closest to each gage is calculated and used to create a weight matrix that is used in the remaining calculations.
I speculate that the idea is that water is assumed to run from each grid point into the closest gage, and so some gages would have a larger catch-basin than others, and so to calculate average rainfall you need to divide by the size of the catch basin. If I am correct then your m and n should only be as large as is required to account for the known catch basins.
Más respuestas (1)
  Pai-Feng Teng
 el 2 de Oct. de 2018
        I tried something very similar, with 9 gages, but I couldn't find the answer. Here is the error message:
Index exceeds matrix dimensions.
Error in HW8 (line 43) indx= index(pos);
Why does that happen, and how can I fix it?
0 comentarios
Ver también
Categorías
				Más información sobre Oceanography and Hydrology en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




