Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to write summation in matlab

1 回表示 (過去 30 日間)
shiv gaur
shiv gaur 2022 年 2 月 5 日
閉鎖済み: Cris LaPierre 2022 年 2 月 9 日
where J=C OR J=S
SO PL YOU ARE REQ TO WRITE IN MATLAB PROGRAM OF SUMMATION
  2 件のコメント
John D'Errico
John D'Errico 2022 年 2 月 5 日
Please stop using Answers as a code writing service. You have been using MATLAB for how long now? And every time you post, youe question is a confusing one like this with no attempt made by you, where you ask someone to write some code for you.
Davide Masiello
Davide Masiello 2022 年 2 月 5 日
I have to agree with @John D'Errico. And, in any case, the question was too unstructured to even attempt to offer some help.

回答 (1 件)

Davide Masiello
Davide Masiello 2022 年 2 月 5 日
In summary:
  • summation of a 1xN array A: sum(A);
  • summation of all elements of a MxN array A: sum(A(:)) or sum(A,'all') (the latter works on the newer versions of MatLab only)
I would anyway suggest checking the following documentation
  3 件のコメント
shiv gaur
shiv gaur 2022 年 2 月 5 日
THE BOTH VALUE OF J C,S BE CONSIDER PL HELP TO WRITE
Davide Masiello
Davide Masiello 2022 年 2 月 5 日
I am sorry, I think that's too little information, you could try to elaborate a bit more.

この質問は閉じられています。

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by