matlab执行下列程序出现的问题:
??? Invoke Error, Dispatch Exception:
Source: Surfer.Application.1
Description: 数据不足 (需要 3 个或更多 XYZ 数据)
Help File: C:\PROGRA~1\GOLDEN~1\Surfer8\Surfer.chm
Help Context ID: 31432
Error in ==> Matlab_surfer at 31
ReturnValue=srf.GridData(DataFile, xCol, yCol, zCol,...
>>
程序如下:
clc
%% %call surfer in matlab,initializesrf=actxserver('Surfer.Application'); %calling surfersrf.visible=1;% visualization surfersrf.PageUnits='srfunitscentimeter'; %surfer unit of pagesrf.windowstate='srfwindowstatemaximized'; %surfer maximize the windowsrf.DefaultFilePath='Filepath'; %the path of data files is defined as the default path of surfer.srf.ScreenUpdating=0;% screen updating.
%% %imaging%{ReturnValue=srf.GridData(DataFile, xCol, yCol, zCol, Ex