Outer product of multiple vectors - MATLAB Cody - MATLAB Central

Problem 44258. Outer product of multiple vectors

Difficulty:Rate

In tensor algebra, it is often useful to define a tensor as a product of lower order tensors. Similarly, a multidimensional array T might be defined as an outer product of vectors, where a given element is defined by

T(i,j,k) = A(i)*B(j)*C(k);

Create a function outerProduct that accepts any number of row or column vectors and calculates their outer product. For the above example,

T = outerProduct(A,B,C);

Solution Stats

17.26% Correct | 82.74% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments

Group

Matrix Patterns III Image
Matrix Patterns III
  • 12 Problems
  • 47 Finishers

Problem Recent Solvers71

Community Treasure Hunt

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

Start Hunting!
Go to top of page