Usage of ndgrid for multidimensional arrays
Show older comments
Hi
I have following two matrices:
A = rand(3,180); B = rand(500,1);
I want to use them so that at the end, I have output of besselj function:
Output = besselj(x,y); where x's comes from B, and y comes from the row data of A.
Here, my output is 3-D. It is 500x180x3. The last "3" stands for the different rows of A. It seems very complicated. How can I do that?
Accepted Answer
More Answers (0)
Categories
Find more on Command Line Only in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!