How can I plot a few dots in matrix plot?

 Réponse acceptée

KSSV
KSSV le 3 Déc 2021
Modifié(e) : KSSV le 3 Déc 2021
[X,Y] = meshgrid(1:5,1:5) ;
plot(X,Y,'*')
A = ones(5) ;
spy(A)

Plus de réponses (1)

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

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by