help-octave
[Top][All Lists]
Advanced

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

Re: How to prevent "error: A(I, J) = X: X must be a scalar..." with work


From: lynx . abraxas
Subject: Re: How to prevent "error: A(I, J) = X: X must be a scalar..." with working matlab code
Date: Tue, 31 Jul 2007 23:52:47 +0200
User-agent: Mutt/1.5.11

On 31/07/07 17:28:03, Przemek Klosowski wrote:
> In Matlab, your example results in:
> 
> x1(:,1)= 0.5.*(u)-0.5
> ???  In an assignment  A(:,matrix) = B, the number of elements in the 
> subscript of A and the number
> of columns in B must be the same.
> 
> so there must be something more in the code that you are not reporting. 
> Please 
> try to create a small, complete code example that works in Matlab and doesnt' 
> work
> in Octave. Also, please specify which version of Octave and Matlab are you 
> using,
> and on what platform.

I  will  rewrite the code to work with octave. I hoped there would be a simple
solution. I had to write the programme at the uni and there they  have  matlab
7.4.0.336  (R2007a).  I  prefer  free  open  source software so octave will be
giving the constrains.

Thanks for the answers
Lynx


reply via email to

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