Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

write a symbolic sum

1 visualización (últimos 30 días)
mohamad momeni
mohamad momeni el 10 de Abr. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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?

Respuestas (1)

Torsten
Torsten el 10 de Abr. de 2017
Why symbolic ?
Use
f = sum(x)
Best wishes
Torsten.
  1 comentario
mohamad momeni
mohamad momeni el 15 de Abr. de 2017
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?

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by