[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nnz and char
From: |
Andrew Funk |
Subject: |
nnz and char |
Date: |
Mon, 30 Jan 2006 16:52:58 -0500 |
Hi,
I have some code that calls nnz on the result of a call to char, e.g.
>> m=char(magic(3)+64)
m =
HAF
CEG
DIB
>> nnz(m)
ans =
9
This works in Matlab but in Octave I get an error:
octave:27> nnz(m)
error: nnz: wrong type argument `sq_string'
I'm wondering if this is considered a bug that would eventually be fixed
in Octave, or should I be thinking of a way to change the code to avoid
this situation? (In the actual code there can be zeros so it makes
sense to be calling nnz, I just created a toy example above).
Thanks,
Andy
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- nnz and char,
Andrew Funk <=
- nnz and char, John W. Eaton, 2006/01/30
- Message not available
- Re: nnz and char, David Bateman, 2006/01/31
- Message not available
- Re: nnz and char, David Bateman, 2006/01/31
- Re: nnz and char, John W. Eaton, 2006/01/31
- Re: nnz and char, David Bateman, 2006/01/31
- Re: nnz and char, John W. Eaton, 2006/01/31
- Re: nnz and char, David Bateman, 2006/01/31