help-octave
[Top][All Lists]
Advanced

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

Copying strings problem


From: Madhusudan Singh
Subject: Copying strings problem
Date: Mon, 5 Sep 2005 18:15:33 -0400
User-agent: KMail/1.7.2

Hi

I have the following statement in a loop :

colnames(k)=strread(k+1,:)

where strread is a string array is created from a string using split().

It quits with an error :

error: A(I) = X: X must be a scalar or a vector with same length as I

Which I do not understand at all. Why would octave try to compare the RHS with 
the *subscript* on the left ?

Thanks.



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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