[Top][All Lists]

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

subscripted assignment dimension mismatch (NDArray)

From: Taku J SATO
Subject: subscripted assignment dimension mismatch (NDArray)
Date: Wed, 4 Feb 2004 21:31:50 +0900

Hi, All,

I have just now encountered one problem using octave-2.1.53:

octave:1> test = zeros(4,4,2);
octave:2> test(1:2,1,1) = ones(2,1)
error: subscripted assignment dimension mismatch
error: assignment failed, or no method for `matrix = matrix'
error: evaluating assignment expression near line 2, column 15

This partial assignment of NDArray by a matrix was possible with
octave-2.1.52.  Does anyone know how to overcome it?

all the best,

Taku J Sato
National Institute for Materials Science,
1-2-1 Sengen, Tsukuba, Ibaraki 305-0047, Japan

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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