Error in surfergrifmap function

1 visualización (últimos 30 días)
Ivan Mich
Ivan Mich el 19 de Ag. de 2021
Comentada: Walter Roberson el 27 de Ag. de 2021
I am trying to use surfergridmap function in order to make a map with contours in matlab (see here https://www.mathworks.com/matlabcentral/fileexchange/10986-surfer-griddata). But when I use this command , command error shows :
Error using kriging (line 24)
Error. Input at least PointsX, PointsY and PointsElev
Error in Untitled2 (line 28)
[Xi,Yi,Zi]=surfergriddata(X,Y,Z,Xi,Yi,kriging)
my code is
clc
clear
filename1= 'file.csv'
[d1,tex]= xlsread(filename1);
X =d1(:,1);
Y=d1(:,2);
X=d1(:,3);
[Xi, Yi] = meshgrid(...
linspace(min(X),max(X)),...
linspace(min(Y),max(Y)));
[Xi,Yi,Zi]=surfergriddata(X,Y,Z,Xi,Yi,kriging)
could you please help me?

Respuestas (1)

Walter Roberson
Walter Roberson el 19 de Ag. de 2021
[Xi, Yi, Zi] = surfergriddata(X, Y, Z, Xi, Yi, 'kriging')
  9 comentarios
Ivan Mich
Ivan Mich el 27 de Ag. de 2021
ok. thank you.
do you know an another way to grid my data with kriging method except from the above solution?
Walter Roberson
Walter Roberson el 27 de Ag. de 2021
http://mgstat.sourceforge.net/ looks like it is an interface to gstat and it appears gstat is open source.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance 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!

Translated by