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?

 Risposta accettata

Arthur Roué
Arthur Roué il 17 Lug 2020

0 voti

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by