Mercurial > hg > octave-lyh
view scripts/plot/__plt2mm__.m @ 22:2cd2476fb32d
[project @ 1993-08-10 20:28:05 by jwe]
Add init functions for balancing classes.
author | jwe |
---|---|
date | Tue, 10 Aug 1993 20:28:05 +0000 |
parents | b4df021f796c |
children | 16a24e76d6e0 |
line wrap: on
line source
function plot_2_m_m (x, y) if (nargin != 2) error ("usage: plot_2_m_m (x, y)"); endif [x_nr, x_nc] = size (x); [y_nr, y_nc] = size (y); if (x_nr == y_nr && x_nc == y_nc) if (x_nc > 0) tmp = [x, y]; command = sprintf ("gplot tmp(:,%d:%d:%d)", 1, x_nc, x_nc+1); for i = 2:x_nc command = sprintf ("%s, tmp(:,%d:%d:%d)", command, i, x_nc, x_nc+i); endfor eval (command); else error ("plot_2_m_m: arguments must be a matrices"); endif else error ("plot_2_m_m: matrix dimensions must match"); endif endfunction