help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xticklabel: warning: range error for conversion to character value


From: mmuetzel
Subject: Re: xticklabel: warning: range error for conversion to character value
Date: Tue, 27 Nov 2018 11:06:01 -0600 (CST)

Which version of Octave are you using? I cannot reproduce this error with
Octave 4.4.1.

The following code works as expected and displays the "xiao" label at 1, 2,
and 3:

ANM2=[1 2 3];

for i=1:3      
  ABD(i)={"xiao "}     % (it's an example..i want to use string}

endfor

plot (1:3);
set (gca, 'XTick',ANM2, 'xticklabel',ABD);




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]