Conversion Wolfram Mathematica to Matlab (Do loop)
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello!. I'd like to ask for your help please. This is just a question from an extremely simple Mathematica code, and I just want to know how I could convert it to the Matlab language:
Clear[sum, n]
sum = 0;
Do[sum = sum + n, {n, 1, 100}]
Print[sum]
Thank you very much!
댓글 수: 2
John D'Errico
2021년 8월 23일
It seems like you are asking pretty basic stuff. And that says you need to read the manual. Try the MATLAB onramp tutorials.
답변 (1개)
참고 항목
카테고리
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!