[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: char behavior
From: |
John W. Eaton |
Subject: |
Re: char behavior |
Date: |
Sun, 9 Oct 2011 10:01:08 -0400 |
On 8-Oct-2011, Rik wrote:
| On 10/08/2011 08:35 PM, Ben Abbott wrote:
|
| > There is an incompatibility problem.
| >
| > With char(M,N) ML returns a character array with size [MxN]
| >
| > Thus, char() should behave like ones(), zeros(), cell(), etc.
|
| Is this more undocumented Matlab weirdness? I don't see this behavior in
| their documentation (http://www.mathworks.com/help/techdoc/ref/char.html).
| What character did they choose to fill the new character matrix with?
|
| This code snippet should produce a 5x3 matrix and show the integer value of
| whatever fill character they used.
|
| double (char (5, 3))
Also, what version of Matlab do you have where you see this behavior?
jwe