필터 지우기
필터 지우기

dividing vectors to get a matrix, as if it were multiplication

조회 수: 2 (최근 30일)
simcc
simcc 2011년 11월 9일
The title may be confusing, but what I want to do is simple and can best be explained with an example. For a multiplication table, one can multiply two vectors and get: a=[2 3]; b=[2 4]; => a'*b=[4 8; 6 12]
I want to do the same, but instead of the values in the table being the product, they must be the division. i.e.: a=[2 3]; b=[2 4]; => (a divided by b)=[1 1.5; 0.5 0.75]
How can I do this in matlab? thanks, Simeon

채택된 답변

Titus Edelhofer
Titus Edelhofer 2011년 11월 9일
or yet another version:
a'*(1./b)
Titus

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by