Not enough input arguments error

1 次查看(过去 30 天)
reza hamzeh
reza hamzeh 2020-1-15
hi. my code gives me error. plz help me to fix it. what to do?
function createfigure(VertexNormals1, ZData1, YData1, XData1, Vertices1, Faces1, FaceVertexCData1)
%CREATEFIGURE(VERTEXNORMALS1, ZDATA1, YDATA1, XDATA1, VERTICES1, FACES1, FACEVERTEXCDATA1)
% VERTEXNORMALS1: patch vertexnormals
% ZDATA1: patch zdata
% YDATA1: patch ydata
% XDATA1: patch xdata
% VERTICES1: patch vertices
% FACES1: patch faces
% FACEVERTEXCDATA1: patch facevertexcdata
% Auto-generated by MATLAB on 24-Dec-2018 13:55:08
% Create figure
figure1 = figure('Renderer','zbuffer');
colormap('cool');
% Create axes
axes1 = axes('Parent',figure1,'CLim',[-0.999783764189357 0.999783764189357]);
view(axes1,[-37.5 30]);
% Create patch
patch('Parent',axes1,'VertexNormals',VertexNormals1,'ZData',ZData1,...
'YData',YData1,...
'XData',XData1,...
'Vertices',Vertices1,...
'Faces',Faces1,...
'FaceColor','interp',...
'EdgeColor','none',...
'FaceVertexCData',FaceVertexCData1,...
'CData',ZData1);
% Create colorbar
colorbar('peer',axes1);
  3 个评论
reza hamzeh
reza hamzeh 2020-1-15
Not enough input arguments.
Error in enteghal_hararate_2D (line 22)
patch('Parent',axes1,'VertexNormals',VertexNormals1,'ZData',ZData1,...
per isakson
per isakson 2020-1-15
The name of the function in your question is createfigure
The name of code that throws the error is enteghal_hararate_2D

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by