Add 2 Vectors - MATLAB Cody - MATLAB Central

Problem 47290. Add 2 Vectors

Difficulty:Rate
Make a function add(A,B)
such that C = add(A,B) will return a third vector C where each term of C is equal to addition of term equivalent to A and B
ex- A = [1 2 3]
B = [2 6 7]
then, C = [3 8 10]

Solution Stats

65.36% Correct | 34.64% Incorrect
Last Solution submitted on May 18, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers111

Suggested Problems

More from this Author40

Problem Tags

Community Treasure Hunt

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

Start Hunting!