Matlab array and matrices

A=[1 2 3 4 5 6 7] B=[2 4 6 8 10 12 14]
How to Add each element of A with the 7th element of B. THANK YOU!

Answers (1)

madhan ravi
madhan ravi on 6 Oct 2020

3 Comments

Can you please answer my question?
The 7th element of B is B(7). Add that to A.
Thank you

This question is closed.

Asked:

on 6 Oct 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!