How do I fill in this square?

55 visualizzazioni (ultimi 30 giorni)
JoshT_student
JoshT_student il 8 Giu 2018
Risposto: Image Analyst il 8 Giu 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

Risposte (1)

Image Analyst
Image Analyst il 8 Giu 2018
Try this:
scatter(x, y, 100, 'k', 'square', 'filled');

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by