Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Help on solving equation
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I have an equation:
((w^2)/g) = k*tanh(k*d)
and I need to solve for k, but I have 50 w values and I am not sure how to solve for 50 k values. I know how to solve for it if only have one w value, but not for 50. If some one could please help me out that would be great. Thanks.
w = w = 0.188:0.021363:1.256
0 件のコメント
回答 (3 件)
Sean de Wolski
2012 年 4 月 2 日
Use a for-loop to loop through your w values.
for ii = 1:numel(w)
solve_with_w(ii)
end
1 件のコメント
Sean de Wolski
2012 年 4 月 2 日
The same way you normally do? You want one k value for each w value correct? Otherwise what are you trying to do? Come up with a best k for all w? Add more detail to your question
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!