Not enough input arguments error

1 vue (au cours des 30 derniers jours)
reza hamzeh
reza hamzeh le 15 Jan 2020
Commenté : per isakson le 15 Jan 2020
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 commentaires
reza hamzeh
reza hamzeh le 15 Jan 2020
Not enough input arguments.
Error in enteghal_hararate_2D (line 22)
patch('Parent',axes1,'VertexNormals',VertexNormals1,'ZData',ZData1,...
per isakson
per isakson le 15 Jan 2020
The name of the function in your question is createfigure
The name of code that throws the error is enteghal_hararate_2D

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by