how can i use sigma (summation ) in loop
1 回表示 (過去 30 日間)
古いコメントを表示
how can i use sigma i.e summation in a loop
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/723569/image.jpeg)
0 件のコメント
回答 (1 件)
Chunru
2021 年 8 月 28 日
% The input data
mc = 10;
a = randi(mc, 1); % alpha
l = randi(mc, 1); % l
b = sum((pi-a).*l)/(4*pi)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!