필터 지우기
필터 지우기

Not enough input arguments error

조회 수: 1 (최근 30일)
reza hamzeh
reza hamzeh 2020년 1월 15일
댓글: per isakson 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