How can I resolve this error?
조회 수: 2 (최근 30일)
이전 댓글 표시
My error is :
Error in parseplotapi (line 15) [cax, args] = axescheck(args{:});
This is the function:
function [v6, cax, args] = parseplotapi(varargin)
% This undocumented function may be removed in a future release
%USEHGPLOTAPI determine plotting version
% Checks to see which HG plotting API should be used.
% Is the v6 flag passed?
[v6,args] = usev6plotapi(varargin{:});
% Parse args for axes parent
try
[cax, args] = axescheck(args{:});
catch e
ids = {'MATLAB:graphics:axescheck:DeletedAxes',...
'MATLAB:graphics:axescheck:DeletedObject',...
'MATLAB:graphics:axescheck:NonScalarHandle'};
if any(strcmp(e.identifier,ids))
throwAsCaller(e);
else
rethrow(e);
end
end
end
but I haven't written this function nor used the word parleplotapi. The second error ist this one: Out of memory. The likely cause is an infinite recursion within the program.
I want to use the function plot3, but maybe the error comes from another part of my function:
figure;
% image background of the sample
img = imread('sample-return.JPG') ;
imagesc(0:xmax, 0:ymax, img)
rectangle('Position',[0 0 xmax ymax])
hold on
% plot of the position of the dots
plot3(X,Y,height,'.','color','k','markersize',12)
set(gca,'DataAspectRatio',[1,1,10])
grid on
% creation of the mesh with a 0.1 cm grid
[Xi,Yi] = meshgrid(0:0.1:xmax, 0:0.1:ymax);
% computation of the energy values of all points of the mesh grid
Zi = griddata(X,Y,energy,Xi,Yi);
% 2D plot of these values
surf(Xi,Yi,Zi,'edgecolor','none')
hold off
alpha(.5)
xlabel('x [cm]')
ylabel('y [cm]')
h = colorbar;
caxis([0.3,1.2])
colormap('jet')
It would be great if somebody could help me with this problem! Thanks in advance!
Copyright 2010-2014 The MathWorks, Inc.
댓글 수: 2
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Elementary Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!