what are ./ and .* are used for

 채택된 답변

Walter Roberson
Walter Roberson 2012년 11월 15일

1 개 추천

./ and .* are element-by-element division and multiplication, respectively.
[1 2 3] ./ [4 5 6]
means
[1/4 2/5 3/6]
and
[1 2 3] .* [4 5 6]
means
[1*4 2*5 3*6]
The operations that do not have the dots in them, / and * are instead matrix algebra division and matrix algebra multiplication

추가 답변 (0개)

카테고리

태그

아직 태그를 입력하지 않았습니다.

질문:

2012년 11월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by