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