How can I use a vector inside an @fun?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Joe Vinciguerra
el 23 de Oct. de 2019
0 votos
Assign 'a' first, then assign 'fun'. In your application I don't believe you can do it the other way around.
1 comentario
Carlos Zúñiga
el 31 de Ag. de 2020
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
