How can I plot a few dots in matrix plot?

 Accepted Answer

[X,Y] = meshgrid(1:5,1:5) ;
plot(X,Y,'*')
A = ones(5) ;
spy(A)

More Answers (1)

Categories

Products

Tags

Asked:

on 3 Dec 2021

Commented:

on 3 Dec 2021

Community Treasure Hunt

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

Start Hunting!