help-octave
[Top][All Lists]
Advanced

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

Re: parse error when accessing meshgrid elements


From: rcharan51
Subject: Re: parse error when accessing meshgrid elements
Date: Wed, 25 Jun 2014 02:52:36 -0700 (PDT)

i succesfully applied function getz to matrix xx by using arrayfun by issuing
this command

dd=arrayfun(@getz, xx);

i am getting an error when using the dd array in an expression to calculate
the z axes coordinates

>> z=-(vloss/(sqrt(2*pi)*k*dd)).* exp(-yy.^2/(2* (k*(dd)).^2));
error: operator /: nonconformant arguments (op1 is 1x1, op2 is 101x55)

but this expression worked fine when 'dd' is replaced with 'getz(xx)' i
think its becoz getz(xx) acted as a scalar
btu dd is an array with same size as yy and xx

thank you in advance



--
View this message in context: 
http://octave.1599824.n4.nabble.com/parse-error-when-accessing-meshgrid-elements-tp4664997p4665043.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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