How do I fill in this square?

67 visualizaciones (últimos 30 días)
JoshT_student
JoshT_student el 8 de Jun. de 2018
Respondida: Image Analyst el 8 de Jun. de 2018
Hello.
My code is this:
x=1;
y=1;
plot(x,y,'Marker','square')
but I don't know how to fill in the square, and I need to fill it in black. Please help. Thank you

Respuestas (1)

Image Analyst
Image Analyst el 8 de Jun. de 2018
Try this:
scatter(x, y, 100, 'k', 'square', 'filled');

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by