[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indexing on row matrices
From: |
Daniel J Sebald |
Subject: |
Re: Indexing on row matrices |
Date: |
Mon, 12 Aug 2013 02:38:29 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 08/12/2013 02:32 AM, Daniel J Sebald wrote:
In working with assert.m and converting column vector indexed
matrices/vectors to strings I'm wondering if the following is correct:
a = [11 22]
a =
11 22
a ([1 2])
ans =
11 22
a ([1; 2])
ans =
11 22
I should add that it wouldn't surprise me that this is correct because
of the way in which "find()" works:
"
Return a vector of indices of nonzero elements of a matrix, as a
row if X is a row vector or as a column otherwise. To obtain a
"
It would be nice if the vector is always a column, so that in general it
need not be forced to a column using (:), but I suppose that doesn't add
too much.
Dan