Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

2 visualizaciones (últimos 30 días)
Jeho
Jeho el 1 de Ag. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
>> 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?

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Ag. de 2012
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

La pregunta está cerrada.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by