Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How can I make function value symbolic?
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (2 件)
John D'Errico
2017 年 10 月 29 日
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
0 件のコメント
Walter Roberson
2017 年 10 月 29 日
Please do not ask the same question multiple times. The hamsters are paddling as fast as they can.
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!