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?

 Respuesta aceptada

Arthur Roué
Arthur Roué el 17 de Jul. de 2020

0 votos

Look for meshgrid or ndgrid functions, you may find what you want

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 17 de Jul. de 2020

Respondida:

el 17 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by