how do i plot a column matrix as a vector point on the x-y plane inm matlab ?
2 views (last 30 days)
Show older comments
chandan p
on 16 Oct 2017
Answered: Gilbert Van Heerswynghels
on 28 Mar 2021
i am trying to plot a matrix as a set of vector points i am quiet not getting it can anyone help
0 Comments
Accepted Answer
More Answers (1)
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';
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!