How can I resolve this error?

2 ビュー (過去 30 日間)
Caroline Zuck
Caroline Zuck 2018 年 9 月 24 日
編集済み: Matt J 2018 年 9 月 24 日
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 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 24 日
What are xmax and ymax?
Caroline Zuck
Caroline Zuck 2018 年 9 月 24 日
xmax and ymax are the seize of my image and also the borders of my coordinate system here (xmax=50, ymax=100)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Polygons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by