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: Mike Miller
Subject: [Octave-bug-tracker] [bug #56395] text object error: invalid conversion from real matrix to real scalar
Date: Sun, 26 May 2019 15:36:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

Update of bug #56395 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    
                 Summary: implicit conversion from numeric to char => text
object error: invalid conversion from real matrix to real scalar

    _______________________________________________________

Follow-up Comment #1:

Use 'warning ("off", "Octave:num-to-str")' if you want to avoid the implicit
conversion warning, trivially solved as a user preference.

The remaining error in the title function I can confirm, but I confirm that
the same error happens at the command line and in a script, that strange
difference is not real.

The error in a clean workspace is


>> title ({'Figure'; []})
error: invalid conversion from real matrix to real scalar
error: called from
    __axis_label__ at line 31 column 3
    title at line 51 column 8


And this error is directly attributable to the following example


>> h = text (1, 1, ''); axis ([0 2 0 2])
>> set (h, "string", {"some text"; []})
error: invalid conversion from real matrix to real scalar


I can confirm using Matlab's online script tool that both of these do work in
Matlab without error or warning.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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