How do I fill in this square?

39 次查看(过去 30 天)
JoshT_student
JoshT_student 2018-6-8
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by