How to use solver in function
Afficher commentaires plus anciens
I have got a problem here.
I want to use solver within a function I m writing. To give you more details, suppose I want to write a function like:
function [a] = example
a = solve('14 = x^2')
end
Now the problem is how I can key in a variable instead of 14 in that solver. I mean suppose I have a variable been defined before like: d = 14, now I want to write my function as below, but it doesn't work :(
function [a] = example
d = 14
a = solve('d = x^2')
end
Any help?
Réponse acceptée
Plus de réponses (1)
shoubhik chakraborty
le 12 Fév 2012
0 votes
Walter,could you please answer my question(which is related to the question) at:
Catégories
En savoir plus sur Common Operations 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!