How can I resolve this error?

2 visualizaciones (últimos 30 días)
Caroline Zuck
Caroline Zuck el 24 de Sept. de 2018
Editada: Matt J el 24 de Sept. de 2018
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 comentarios
Walter Roberson
Walter Roberson el 24 de Sept. de 2018
What are xmax and ymax?
Caroline Zuck
Caroline Zuck el 24 de Sept. de 2018
xmax and ymax are the seize of my image and also the borders of my coordinate system here (xmax=50, ymax=100)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Elementary Polygons 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