How to solve for each value a SOLVE equation
古いコメントを表示
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!