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

2 次查看(过去 30 天)
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Octave 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by