fill3 not working
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Kirven
el 25 de Mayo de 2016
Comentada: Walter Roberson
el 26 de Mayo de 2016
I am trying to plot a simple white (or any solid color for that matter) rectangle. I've tried
px=[.5 .5 -5 -.5];
py=[-.3 .3 -.3 .3];
pz=[.3 .3 .3 .3];
X = [px; px];
Y = [py; py];
Z = [-pz; pz];
C = [1 1 1 1; 1 1 1 1];
figure
fill3(X,Y,Z,C);
But only a black box shows up. I've tried different values in the C matrix such as all .5's but still just shows the same black box. What am I doing wrong??? I appreciate any help anyone can give,
Thanks,
Thomas
0 comentarios
Respuesta aceptada
Walter Roberson
el 25 de Mayo de 2016
Perhaps
fill3(X',Y',Z',1);
2 comentarios
Walter Roberson
el 26 de Mayo de 2016
fill3() does not fill between planes.
"If X, Y, and Z are matrices of the same size, fill3 forms a vertex from the corresponding elements of X, Y, and Z (all from the same matrix location), and creates one polygon from the data in each column."
Each of those polygons is filled -- independently of the others.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Properties 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!