Addition and Subtraction of Vectors
Example
Create a script file with the following code:
B = [2, 5, 13, 16, 20];
C = A + B;
D = A - B;
disp(C);
disp(D);
When you run the file, it displays the following result:
9 16 28 39 29
5 6 2 7 -11
No comments:
Post a Comment