Mercurial > hg > octave-lyh
annotate scripts/plot/__plt2ss__.m @ 4:b4df021f796c
[project @ 1993-08-08 01:26:08 by jwe]
Initial revision
author | jwe |
---|---|
date | Sun, 08 Aug 1993 01:26:08 +0000 |
parents | |
children | 16a24e76d6e0 |
rev | line source |
---|---|
4 | 1 function plot_2_s_s (x, y) |
2 | |
3 if (nargin != 2) | |
4 error ("usage: plot_2_s_s (x, y)"); | |
5 endif | |
6 | |
7 [x_nr, x_nc] = size (x); | |
8 [y_nr, y_nc] = size (y); | |
9 | |
10 if (x_nr == 1 && x_nr == y_nr && x_nc == 1 && x_nc == y_nc) | |
11 tmp = [x, y]; | |
12 command = sprintf ("gplot tmp"); | |
13 eval ("gplot tmp"); | |
14 else | |
15 error ("plot_2_s_s: arguments must be scalars"); | |
16 endif | |
17 | |
18 endfunction |