New to Matlab, Combining Double

7 Ansichten (letzte 30 Tage)
Meg Kadwell
Meg Kadwell am 11 Mai 2021
Bearbeitet: David Goodmanson am 12 Mai 2021
I have a 15x1 double and a 1x15 double, how can i combine them to create 15x15 double?
  1 Kommentar
David Goodmanson
David Goodmanson am 12 Mai 2021
Bearbeitet: David Goodmanson am 12 Mai 2021
Hello Meg,
there are lots of ways to do this, depending on what you would like the result to be. For example, if a is 15x1 and b is 1x15, then a*b, the outer product, is 15x15. Starting about five years ago Matlab introduced explicit expansion, so in newer versions of Matlab, the 'outer sum' a+b is also 15x15. Lots of possibilites.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by