File Exchange

image thumbnail

Matrix plotting

version 1.0.0.0 (3.91 KB) by Sky Sartorius
Plot using single 2 x n (or 3 x n) matrices as inputs instead of x, y, (and z) vectors.

1 Download

Updated 21 Nov 2017

GitHub view license on GitHub

plotm was created so you can stop doing things like this:
plot(M(1,:),M(2,:)) or plot3(M(1,:),M(2,:),M(3,:)).
and start doing things like this:
plotm(M)

plotm works by separating any matrix with two or more rows into vectors. The vectors are passed to plot for 2 x n and to plot3 for 3 x n. If no inputs have multiple rows, plotm calls plot.

Scalars and row vectors (including handles, Name/Value pairs, LineSpecs, etc.) are preserved and passed to the plotting functions. For example, plotm(M1,'or',M2,'xb').

The equivalent function for line, linem, is also included.

Cite As

Sky Sartorius (2019). Matrix plotting (https://www.github.com/sky-s/matrix-plotting), GitHub. Retrieved .

Comments and Ratings (0)

Updates

1.0.0.0

description update

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux