Hello,
Suppose I have to define a polynomial with function hadle of f(x,y) = ax^2+by+c with a, b, c as constants. So I can do the other mathematical operations likr integration, differentiation with this function handle.
Please note that I dont want to define the constants as numbers like f = @(x,y) 3x^2+4y+5.
Could someone please help me?
Thanks and regards

 採用された回答

Matt J
Matt J 2021 年 9 月 15 日
編集済み: Matt J 2021 年 9 月 15 日

0 投票

You mean like this?
[a,b,c]=deal(3,4,5);
f = @(x,y)a*x.^2+b*y+c
f = function_handle with value:
@(x,y)a*x.^2+b*y+c
Or like this?
syms x y a b c f(x,y)
f(x,y)=a*x.^2+b*y+c
f(x, y) = 

1 件のコメント

jomson joy
jomson joy 2021 年 9 月 15 日
The symbolic one. That was the command I was looking for.
Thanks you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Polynomials についてさらに検索

質問済み:

2021 年 9 月 15 日

コメント済み:

2021 年 9 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by