Error using patch - Non-numeric data is not supported in 'patch'. While using Plotcube
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to plot a cube using plotcube
plotcube([width length height],[ 0 0 0 ],1,[1 0 0]);
This is the Error I'm getting
Error using patch
Non-numeric data is not supported in 'patch'
Error in plotcube (line 49)
cellfun(@patch,XYZ{1},XYZ{2},XYZ{3},...
Error in MATLAB (line 31)
plotcube([width length height],[ 0 0 0 ],1,[1 0 0]);
Can anyone help?
Thank You
1 comentario
Walter Roberson
el 28 de Nov. de 2019
What are class() of length and width and height at that point in the code?
Respuestas (1)
KSSV
el 28 de Nov. de 2019
width = 1 ;
length = 1 ;
height = 1 ;
plotcube([width length height],[ 0 0 0 ],1,[1 0 0]);
0 comentarios
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!