Plot 2 function variables with exp and abs
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I have to plot this 2 variables function: e^{-|(x,y)|}.
x = sym('x', [2 1]);
f = exp(-abs(x(1),x(2)));
fsurf(f)
set(gca, 'XLim', [-1 1], 'YLim', [-1 1], 'ZLim', [0 2]);
I'm using this code that work perfectly for others 2 variables function but now I have this error:
Error using sym/abs
Too many input arguments.
Error in (line 5)
f = exp(-abs(x(1),x(2)));
What can I do?
回答 (0 件)
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

