New to Matlab, Combining Double

I have a 15x1 double and a 1x15 double, how can i combine them to create 15x15 double?

댓글 수: 1

David Goodmanson
David Goodmanson 2021년 5월 12일
편집: David Goodmanson 2021년 5월 12일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2021년 5월 11일

편집:

2021년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by