How can I use a vector inside an @fun?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Joe Vinciguerra
il 23 Ott 2019
0 voti
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.
1 Commento
Carlos Zúñiga
il 31 Ago 2020
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
