Summation of an array
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Barry Allen
am 5 Feb. 2020
Kommentiert: Barry Allen
am 6 Feb. 2020
How can i code this in matlab?
0 Kommentare
Akzeptierte Antwort
JESUS DAVID ARIZA ROYETH
am 5 Feb. 2020
if length(P) and length(Y) is N:
x=sum(P.*Y)
in another case:
N=5; %set any value for N
x=sum(P(1:N).*Y(1:N))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!