How can I plot a few dots in matrix plot?

2 次查看(过去 30 天)
for example, I want to plot this one:

采纳的回答

KSSV
KSSV 2021-12-3
编辑:KSSV 2021-12-3
[X,Y] = meshgrid(1:5,1:5) ;
plot(X,Y,'*')
A = ones(5) ;
spy(A)

更多回答(1 个)

Walter Roberson
Walter Roberson 2021-12-3
[X,Y] = meshgrid(6:6:24);
scatter(X, Y, 'b*')
xlim([0 30]); ylim([0 30])

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by