Vectors and Sum operation
古いコメントを表示
Trying to use sum to figure about resistor formula, 1/[(1/r1)+1rn)] where n can be any number.
What i have come up with:
function R = scirpt(y)
R = 1/sum(1/(y));
end
Well be entering this:
scirpt([100,200,300]) should output 54.5455
if true
% code
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Stair Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!