write a symbolic sum

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일

0 개 추천

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?

이 질문은 마감되었습니다.

질문:

2017년 4월 10일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by