Creating a 3d array from 1d vectors

6 views (last 30 days)
Say I am give three vectors with n components each. Is there a quick way to create an array T such that without using a for loop?

Accepted Answer

Arthur Roué
Arthur Roué on 17 Jul 2020
Look for meshgrid or ndgrid functions, you may find what you want

More Answers (0)

Categories

Find more on Matrices and Arrays 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!