Sum of series in matlab

5 次查看(过去 30 天)
Rana Önem
Rana Önem 2021-11-18
评论: Rana Önem 2021-11-19
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 个评论
James Tursa
James Tursa 2021-11-18
Is this homework? Do you have to use a for-loop?
Rana Önem
Rana Önem 2021-11-19
yeah i need to use for loop i think it is the best

请先登录,再进行评论。

回答(1 个)

James Tursa
James Tursa 2021-11-18
编辑:James Tursa 2021-11-18
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).';

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by