How can I use a vector inside an @fun?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Joe Vinciguerra
le 23 Oct 2019
0 votes
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.
1 commentaire
Carlos Zúñiga
le 31 Août 2020
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
