Borrar filtros
Borrar filtros

Not enough input arguments error

1 visualización (últimos 30 días)
reza hamzeh
reza hamzeh el 15 de En. de 2020
Comentada: per isakson el 15 de En. de 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 comentarios
reza hamzeh
reza hamzeh el 15 de En. de 2020
Not enough input arguments.
Error in enteghal_hararate_2D (line 22)
patch('Parent',axes1,'VertexNormals',VertexNormals1,'ZData',ZData1,...
per isakson
per isakson el 15 de En. de 2020
The name of the function in your question is createfigure
The name of code that throws the error is enteghal_hararate_2D

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by