フィルターのクリア

Info

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

write a symbolic sum

2 ビュー (過去 30 日間)
mohamad momeni
mohamad momeni 2017 年 4 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hi, I've been trying to write a formula in matlab, but for more size how can i write it? i wanna write this: f=x(1)+x(2)+...+x(300). is there any code to write this?

回答 (1 件)

Torsten
Torsten 2017 年 4 月 10 日
Why symbolic ?
Use
f = sum(x)
Best wishes
Torsten.
  1 件のコメント
mohamad momeni
mohamad momeni 2017 年 4 月 15 日
hi sir "x" is a vector that we can write f like this>>> f=x(1)+x(2)+... how can i define x as a vector and then write a summation on it?

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

Community Treasure Hunt

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

Start Hunting!

Translated by