how do i plot a column matrix as a vector point on the x-y plane inm matlab ?

2 views (last 30 days)
i am trying to plot a matrix as a set of vector points i am quiet not getting it can anyone help

Accepted Answer

KSSV
KSSV on 16 Oct 2017
Edited: KSSV on 16 Oct 2017
Let x be your vector...use plot(x,'.r')
x = rand(10,1) ;
plot(x,'.r')

More Answers (1)

Gilbert Van Heerswynghels
Gilbert Van Heerswynghels on 28 Mar 2021
A=[3 2;4 1];
hold on
plot (A(1,1),A(2,1),'.')
plot (A(1,2),A(2,1),'.')
xlim([-5,5]);
ylim([-5, 5]);
ax = gca;
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!