octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #56395] text object error: invalid conversion


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #56395] text object error: invalid conversion from real matrix to real scalar
Date: Mon, 27 May 2019 17:09:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #4, bug #56395 (project octave):

@Rik: In addition to char arrays, and strings Matlab also allows numeric
values (and others) to be passed. It also allows cell arrays of all those
types mixed, e.g.


text (.3, .8, {"Hello", 'world', [], 123})


produces a 4 lines text object that looks like


Hello
world

123


Precisely they say: 

>> Text that contains only a numeric value is converted using
sprintf('%g',value)

And indeed, "sprintf ("%g", [])" does produce an empty string in Octave as
well.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56395>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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