HOW TO WRITE SUMMATION FORM ∑_(i=1) (L-1)

Risposte (2)

Laurent
Laurent il 4 Set 2013

0 voti

Make an appropriate vector with the values that you want to sum (or select the values from an array containing them) and use the command 'sum'.
Matt J
Matt J il 4 Set 2013
Modificato: Matt J il 4 Set 2013
Are you trying to sum the first 256 elements of an array? If so, you would do as follows
sum(x(1:256))
Or, if length(x) is 256, then you would just do
sum(x)

Categorie

Scopri di più su Aerospace Blockset in Centro assistenza e File Exchange

Tag

Richiesto:

il 4 Set 2013

Community Treasure Hunt

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

Start Hunting!

Translated by