Info

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

How can I make function value symbolic?

2 visualizaciones (últimos 30 días)
Muhendisleksi
Muhendisleksi el 29 de Oct. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
function t = turev(x,y)
.
.
.
end
x = x^2+y^2, y = 1
How can I make the function "x ^ 2 + y ^ 2" symbolic when I enter the values?

Respuestas (2)

John D'Errico
John D'Errico el 29 de Oct. de 2017
If either of x or y are already symbolic, then any computations done on them will also be symbolic.
You can create a symbolic constant or variable using sym or syms, depending on exactly how you want to do it.
help sym

Walter Roberson
Walter Roberson el 29 de Oct. de 2017
Please do not ask the same question multiple times. The hamsters are paddling as fast as they can.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by