Creating a 3d array from 1d vectors

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?

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by