Mercurial > octave-nkf
changeset 6012:7c048a800ebe
[project @ 2006-09-29 19:01:06 by jwe]
author | jwe |
---|---|
date | Fri, 29 Sep 2006 19:01:06 +0000 |
parents | d3112590883f |
children | 13c4326d3501 |
files | scripts/plot/__make_using_clause__.m |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/plot/__make_using_clause__.m Fri Sep 29 19:01:06 2006 +0000 @@ -0,0 +1,11 @@ +function usingstr = __make_using_clause__ (x) + cols = columns (x); + if (cols > 0) + usingstr = strcat (gnuplot_command_using, " ($1)"); + for k = 2:cols + usingstr = sprintf ("%s:($%d)", usingstr, k); + endfor + else + usingstr = ""; + endif +endfunction