File Exchange

image thumbnail

Sum of vectors

version (1 KB) by Martin
Gives sum of vectors.

1 Download

Updated 13 Dec 2013

View License

A code for giving sum of the vectors.

Cite As

Martin (2021). Sum of vectors (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Stephen Cobeldick

This page currently shows 11 downloads in the last 30 days for this submission: are those downloaders aware that this submission is a looped version of functionality that is already built into MATLAB, and that its internal variable masks MATLAB's inbuilt "sum" function?


This function does not work, because the input argument "v" has been forgotten. Calculating a sum by a loop is a very bad idea in Matlab, because the built-in function SUM() is much nicer, faster and free of bugs.

I do not see a reason to publish this not working piece of code without help text, which performs calculations slower than an already existing function. Please remove it from the FEX.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: multip_add(varargin)

Community Treasure Hunt

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

Start Hunting!