How can I use a vector inside an @fun?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Joe Vinciguerra
am 23 Okt. 2019
0 Stimmen
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.
1 Kommentar
Carlos Zúñiga
am 31 Aug. 2020
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
