How do I fill in this square?

34 views (last 30 days)
JoshT_student
JoshT_student on 8 Jun 2018
Answered: Image Analyst on 8 Jun 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

Answers (1)

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

Categories

Find more on Vector Fields in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!