Error in surfergrifmap function

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?

답변 (1개)

Walter Roberson
Walter Roberson 2021년 8월 19일

0 개 추천

[Xi, Yi, Zi] = surfergriddata(X, Y, Z, Xi, Yi, 'kriging')

댓글 수: 9

Ivan Mich
Ivan Mich 2021년 8월 19일
I am sorry but command window shows:
Error in actxserver (line 89)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in surfergriddata (line 82)
srf=actxserver('surfer.application');
Error in Untitled2 (line 28)
[Xi, Yi, Zi] = surfergriddata(X, Y, Z, Xi, Yi, 'kriging')
Ivan Mich
Ivan Mich 2021년 8월 21일
Does anybody know how to solve this problem?
Walter Roberson
Walter Roberson 2021년 8월 21일
That File Exchange Contribution is only suitable for MS Windows systems that have Golden Software Surfer installed under the ID "surfer.application"
Ivan Mich
Ivan Mich 2021년 8월 21일
Yes I have installed Golden software surfer, and I generally use this. So What is the problem? Do you know what to do?
Walter Roberson
Walter Roberson 2021년 8월 21일
I would imagine that if I were in your situation, I would post a copy of the complete error message saying what MATLAB thought was wrong.
Ivan Mich
Ivan Mich 2021년 8월 27일
The complete message is:
Error using feval
Server Creation Failed: Ç åêôÝëåóç áðü ôï äéáêïìéóôÞ áðÝôõ÷å
Error in actxserver (line 89)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in surfergriddata (line 82)
srf=actxserver('surfer.application');
Error in Untitled2 (line 28)
[xi,yi,zi]=surfergriddata(x,y,z,xi,yi,'kriging')
Walter Roberson
Walter Roberson 2021년 8월 27일
Unfortunately, that software is a fair price ($US1000), and the trial is only two weeks. I do not think it is going to be practical for me to test it myself.
But at the moment, it looks to me as if the COM object for the software is perhaps not properly installed.
Ivan Mich
Ivan Mich 2021년 8월 27일
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 2021년 8월 27일
http://mgstat.sourceforge.net/ looks like it is an interface to gstat and it appears gstat is open source.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

질문:

2021년 8월 19일

댓글:

2021년 8월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by