Cookbook: Difference between revisions

Jump to navigation Jump to search
2 bytes added ,  17 August 2017
Line 304: Line 304:


{{Code||<syntaxhighlight lang="octave">
{{Code||<syntaxhighlight lang="octave">
char (nchoosek (uint8 (string), n)
char (nchoosek (uint8 (string), n))
</syntaxhighlight>}}
</syntaxhighlight>}}
==== Discussion ====
==== Discussion ====
A string in Octave is just a character matrix and can easily be converted to numeric form back and forth. Each character has an associated number (the {{codeline|asci}} function of the {{forge|miscellaneous}} package displays a nicely formatted conversion table).
A string in Octave is just a character matrix and can easily be converted to numeric form back and forth. Each character has an associated number (the {{codeline|asci}} function of the {{forge|miscellaneous}} package displays a nicely formatted conversion table).
Anonymous user

Navigation menu