How to solve for each value a SOLVE equation
Afficher commentaires plus anciens
Qout is a line matrix [1*cont] and I want to obtain a solution for x for each Qout and to store that information in some new matrix. How can I do this? Thank you very much!
x = [];
for i=1:1:cont
eqn = @(x) Qout(i) == Ks*(d^2 * (2*x - sin(2*x)) / 8)*((d * (1 - sin(2*x) / 2*x) / 4)^(2/3))*sqrt(s) ;
solve(eqn,x)
x1(i)=x
end
when I run the code above I get a error message:
Error using solve>getEqns (line 414)
The input contains an empty equation or variable.
Error in solve (line 225)
[eqns,vars,options] = getEqns(varargin{:});
Error in Ficha3_1 (line 112)
solve(eqn,x)
Sorry if it's missing information but I'm quite noob at this.
Réponse acceptée
Plus de réponses (0)
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!