What kind of structure is that in MATLAB I've never seen it before... (Differential equations)

f = @(t,x) [-x(1)+3*x(3);-x(2)+2*x(3);x(1)^2-2*x(3)];
what does "@(t,x)" represent and there's some room between the expression and this thing I put in quotes..

 採用された回答

Roberto
Roberto 2014 年 5 月 9 日

0 投票

It creates a function handle, also called anonymous functions learn more here

1 件のコメント

Douglas Alves
Douglas Alves 2014 年 5 月 10 日
Thank you. That was the first time i've seen it. I didn't even know how it was called.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by