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

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

[Octave-patch-tracker] [patch #9985] [octave forge] (statistics) Add fun


From: anonymous
Subject: [Octave-patch-tracker] [patch #9985] [octave forge] (statistics) Add function confusionchart
Date: Sun, 28 Feb 2021 04:55:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #7, patch #9985 (project octave):

About that array of labels, it can be literally anything.

An array of numbers:

confusionchart(m, [1000 575 12]) # labels are "1000", "575", "12"
confusionchart(m, [3.14 1.41 3]) # labels are "3.14", "1.41", "3"


An array of characters:

confusionchart(m, ['a' 'b' 'c']) # labels are "a", "b", "c"
confusionchart(m, ["abc"]) # idem
confusionchart(m, ["abc"]') # idem



An array of strings:

confusionchart(m, ["abc"; "cbc"; "ddd"]) # labels are "abc", "cbc", "ddd"
confusionchart(m, ["abc", "cbc", "ddd"]) # this obviously does not work in
Octave, but it should when string arrays will work


A cell string array:

confusionchart(m, {"a", "b", "c"})
confusionchart(m, {"a"; "b"; "c"})



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9985>

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




reply via email to

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