Mathematics
6-15
Functionality What Happens
When You
Use This
Functionality
Use This Instead Compatibility Considerations
besseli, besselj,
besselk, and
bessely. For example,
passing a row vector
followed by a column
vector:
J= besselj(rowNu, colZ)
or passing a column
vector followed by a
row vector:
J= besselj(colNu, rowZ)
a function handle and the
mixed-orientation vectors to
bsxfun.
your code in one of two
ways:
• Call meshgrid or
ndgrid to construct the
full grid first.
[nu,Z]= meshgrid(rowNu, ColZ);
J= besselj(nu, Z);
• Pass a function
handle and the mixed-
orientation vectors to
bsxfun. For example,
if your existing code
passes a row vector
followed by a column
vector, make the
following change:
J= bsxfun(@besselj,
rowNu, colZ);or,
if your code passes a
column vector followed
by a row vector, make
the following change:
J= bsxfun(@besselj,
colNu', rowZ.');
Commenti su questo manuale