How can I plot a few dots in matrix plot?

2 visualizzazioni (ultimi 30 giorni)
for example, I want to plot this one:

Risposta accettata

KSSV
KSSV il 3 Dic 2021
Modificato: KSSV il 3 Dic 2021
[X,Y] = meshgrid(1:5,1:5) ;
plot(X,Y,'*')
A = ones(5) ;
spy(A)

Più risposte (1)

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

Categorie

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

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by