User`s guide

Mathematics
7-19
Functionality What Happens
When You
Use This
Functionality
Use This Instead Compatibility Considerations
Passing mixed
orientation input
vectors to besselh,
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)
Warns Construct the inputs with
ndgrid or meshgrid first.
Alternatively, you can pass
a function handle and the
mixed orientation vectors to
bsxfun.
Modify all instances that
pass mixed orientation
vectors. You can modify
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.');