Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Use ./ or / in symbolic expressions. Doesn't make a difference?

조회 수: 2 (최근 30일)
Jeho
Jeho 2012년 8월 1일
마감: MATLAB Answer Bot 2021년 8월 20일
>> syms k
>> f = k./(k+1)
f =
k/(k + 1)
>> g = k/(k+1)
g =
k/(k + 1)
f and g above end up being the same. Why?

답변 (1개)

Walter Roberson
Walter Roberson 2012년 8월 1일
The operators are overloaded in symbolic expressions and defined to mean the same thing for symbolic expressions.
MuPAD's / operator is sensitive to the data type that is being used and only does matrix arithmetic when appropriate. See http://www.mathworks.com/help/toolbox/mupad/linalg/index.html

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by