help-octave
[Top][All Lists]
Advanced

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

strange behaviour of .*


From: Miĥail Vasiljev
Subject: strange behaviour of .*
Date: Sat, 22 May 2010 19:31:52 +0400

Hello, octave-users!

I have a script, which I think is correct, but it does not work in GNU
Octave. Could you, please, explain me whats wrong with it? I've removed
all the code that is not related to the problem from the script, and
applied it to the message. "Main_vec.m" calls "fsolve()" and passes it
the "trovuTemperaturoj" function. After that my octave complains:


> [xinm]:~/calc/teilor
> :./main_vec.m
> error: product: nonconformant arguments (op1 is 1x998, op2 is 998x1)
> error: evaluating binary operator `.*' near line 12, column 42
> error: evaluating assignment expression near line 11, column 28
> error: called from `trovuTemperaturoj' in file 
> `/home/xinm/calc/teilor/trovuTemperaturoj.m'
> error: fsolve: evaluation of user-supplied function failed
> error: near line 7 of file `./main_vec.m'
> 

Whats wrong with my script? Why op1 ((1./r(2:numberOfElements-1)) as I
understand) is 1x998 and op2 (((u(2+numOfEl-1:numOfEl-1+numOfEl-1) - u(2
+numOfEl:numOfEl-1+numOfEl))./(Delta_r))) is 998x1? I use GNU Octave,
version 3.0.1 from Debian Lenny repository. 
 
Thank you!

-- 
Miĥail Vasiljev <address@hidden>

Attachment: main_vec.m
Description: Text Data

Attachment: trovuTemperaturoj.m
Description: Text Data


reply via email to

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