How can I use a vector inside an @fun?
古いコメントを表示
Hello everyone,
I want to define a function like "fun = @(x) sin(a*x)" where "a" is a vector of n dimention.
Do you have any idea?
Thank you for your support.
Greetings.
採用された回答
その他の回答 (1 件)
Joe Vinciguerra
2019 年 10 月 23 日
0 投票
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
