call an equation within the function
Mostra commenti meno recenti
hello,
I am writing a code like,
syms x y;
data=2*x^2+3*x+y;
function f= obj(x,y)
f=@data;
end
but here 'f' is not calling the equation 'data' within the function. what will be the command so that 'f' can call the data in this function?
2 Commenti
David Hill
il 27 Ott 2020
What are you trying to do? Please explain with an example. Is there a reason you need symbolic variables?
Soumili Sen
il 27 Ott 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Symbolic Math Toolbox 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!