octave-maintainers
[Top][All Lists]
Advanced

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

Display of strings by interpreter


From: Rik
Subject: Display of strings by interpreter
Date: Wed, 23 Oct 2019 08:58:31 -0700

All,

Continuing with the theme of how results are displayed in Octave, should we
move to displaying char arrays and strings with enclosing single or double
quotes?  This is how Matlab behaves, and I think it may be useful to
understanding when there are trailing spaces or null characters.

Current behavior with Octave

octave:1> "Hello World"
ans = Hello World

Current behavior with Matlab

"Hello World"
ans = "Hello World"

'Hello World     '
ans = 'Hello World     '
strtrim (ans)
ans = 'Hello World'

This feature has been requested at
https://savannah.gnu.org/bugs/index.php?56973.

--Rik




reply via email to

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