Why the numerical values for function handle from matlabFunction should be written one by one?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Tony Cheng
il 12 Dic 2018
Commentato: madhan ravi
il 13 Dic 2018
Hi guys,
I am now using matlabFunction for change a symbolic expression into a funtion handle.
I find a question like this: if I write the numeric values one by one to replace the symbolic variables like this:
![1.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198840/1.jpeg)
then the answer can be obtained as 3.
However, if I write
F2= f( aa )
then, in the command window, it shows like this:
![3.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198841/3.jpeg)
Could anyone help me about this question?
Thanks so much!
2 Commenti
Risposta accettata
madhan ravi
il 12 Dic 2018
Modificato: madhan ravi
il 12 Dic 2018
Because your function requires three inputs but you fed in 1
f(aa(1),aa(2),aa(3))
6 Commenti
madhan ravi
il 13 Dic 2018
Anytime :) , if you got the answer to your question make sure to accept the answer.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Whos in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!