フィルターのクリア

M.file implementing the formula below using either Mat-lab or octave

2 ビュー (過去 30 日間)
ephraim matloba
ephraim matloba 2015 年 2 月 20 日
コメント済み: Stalin Samuel 2015 年 2 月 21 日
In the following, R can take any value between 5 and 6. Work out the value of I for R = 5.00, 5.01, 5.02, ..., and 6. Then find the average value of I. I= 30/(R*(sqrt(R^2+15*pi^2))

採用された回答

Stalin Samuel
Stalin Samuel 2015 年 2 月 20 日
r = 5.00:0.01:6.00
for i=1:numel(r)
R=r(i)
I(i)= 30/(R*(sqrt(R^2+15*pi^2)))
end
avg =mean(I)
  2 件のコメント
Titus Edelhofer
Titus Edelhofer 2015 年 2 月 20 日
Hi Samuel,
there is no need to use a loop, if you replace "30/" by "30./" and the "*" and "^2" by ".*" and ".^2" ...
Titus
Stalin Samuel
Stalin Samuel 2015 年 2 月 21 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOctave についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by