- x - n*m covariate matrix containing m covariates for n observations
 - y - n*1 response vector containing n observations
 - coors - n*2 coordinate matrix containing horizontal axis and vertical axis for n observations.
 - bandwidth - scalar value indicating bandwidth parameter
 - varargin - Name/Value pairs
 
matlab r2014a에서 'gwr'은(는) 유형 'struct'의 입력 인수에 대해 정의되지 않은 함수입니다.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
matlab r2014a에서 'gwr'은(는) 유형 'struct'의 입력 인수에 대해 정의되지 않은 함수입니다.
라고 경고문이 뜨는데 , gwr을 하기 위해서는 어떻게 해야하나요?
%=============GWR ANALYSIS========%
%=============exponential weight========%
info.dtype='exponential';
res1=gwr(ln_sale,x,xc,yc,info);
prt(res1, vnames);
more on;
0 comentarios
Respuestas (2)
  Krishna
      
 el 25 de Ag. de 2024
        Hello,
It seems you are facing problem with the ‘gwr’ function in MATLAB, the issue being the function is not able to accept input of type struct. If you go through the following documentation of Geographically weighted regression, it clearly shows that you require 4 inputs and a name value pair instead of struct. The inputs are 
Please visit the documentation to learn more regarding this,
Also please go through the following documentation to learn more regarding how to properly post in MATLAB answer to get quick reply,
Hope this helps.
0 comentarios
  Walter Roberson
      
      
 el 25 de Ag. de 2024
        gwr appears to be https://www.mathworks.com/matlabcentral/fileexchange/81011-geographically-weighted-regression 
You need to have installed that File Exchange Contribution.
0 comentarios
Ver también
Categorías
				Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!