Sum of series in matlab

조회 수: 1 (최근 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