-
2 Comments
irem erezn
on 17 Jan 2017
Why doesn't it work?
function y=vecsum(x)
y=symsum(x(i),i,1,size(x));
end
Savas Yaguzluk
on 27 Feb 2019
Because you are doing it wrong!
You should check the basis of 'sum' topic in the help.
Here you go: https://www.mathworks.com/help/matlab/ref/sum.html?searchHighlight=sum%20vector&s_tid=doc_srchtitle
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!