From help-octave-request at bevo dot che dot wisc dot edu Wed Feb 2 06:16:43 2000 Subject: isnt ';' a scalar operator? From: Daniel Heiserer To: "help-octave at bevo dot che dot wisc dot edu" Date: Wed, 02 Feb 2000 13:16:06 +0100 Hi I would like to use the legend stuff and for that I like to create a vector of strings containing the ';'. >> ';'*ones(length(dofs),1) error: operator *: nonconformant arguments (op1 is 1x1, op2 is 8x1) error: evaluating assignment expression near line 10, column 4 Unfortunately this doesnt work: ';'*ones(length(dofs),1) That works, but is a little bit ugly. setstr(abs(';')*ones(length(dofs),1)) Daniel ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------