Sum of series in matlab

2 views (last 30 days)
Rana Önem
Rana Önem on 18 Nov 2021
Commented: Rana Önem on 19 Nov 2021
I have 27 points x and y coordinates. I write these as a R matrix, R=[X;Y]. I want to make this process, but i dont know how can you help me?
  2 Comments
James Tursa
James Tursa on 18 Nov 2021
Is this homework? Do you have to use a for-loop?
Rana Önem
Rana Önem on 19 Nov 2021
yeah i need to use for loop i think it is the best

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 18 Nov 2021
Edited: James Tursa on 18 Nov 2021
You could use a simple matrix multiply for this (it looks like the x is the first row and the y is the second row):
A = R(1,1:27) * R(2,2:28).';

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!