How can I plot a few dots in matrix plot?

 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)

[X,Y] = meshgrid(6:6:24);
scatter(X, Y, 'b*')
xlim([0 30]); ylim([0 30])

Categorie

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by