view scripts/plot/__make_using_clause__.m @ 6154:08f0dabf17b9

[project @ 2006-11-13 18:30:25 by jwe]
author jwe
date Mon, 13 Nov 2006 18:30:25 +0000
parents 7c048a800ebe
children 17f25cd588b2
line wrap: on
line source

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