please help in typing these sigma equations in matlab script.
조회 수: 1 (최근 30일)
이전 댓글 표시
please help me how to solve these equations(13-27; 13-25; 13-23; 13-22; 13-28; 13-30;) given in pdf in matlab.I'm unable to type and solve these equation in matlab.
댓글 수: 4
Torsten
2022년 10월 13일
sigma is sum() in MATLAB.
v = 1:10;
sum(v)
1 + 2 + 3 + 4 +5 + 6 + 7 + 8 + 9 + 10
답변 (1개)
Sai
2022년 10월 18일
I understand that you are facing the issue with the usage of summation in your MATLAB code.
You can use available MATLAB function “sum” which replicates the same as that of summation in math.
You can also refer to the following documentation for future reference:
Following code snippet may help you to resolve the issue:
%Assume Xi
Xi = [1, 2, 3, 6, 2, 8, 9, 1, 7]
sum(Xi)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1160583/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!