DATA ANALYSIS

조회 수: 9 (최근 30일)
Dominic Lawson
Dominic Lawson 2011년 2월 26일
Hi,
If I have x = 1:10 and y = 1:10 and I would like to compute
x(:,1)'.*y' and
x(:,2)'.*y' and
x(:,3)'.*y' all the way to
x(:,10).*y'
how can I write a fast way to do this for example in a loop?
Any help would be greatly appreciated.

채택된 답변

bym
bym 2011년 2월 26일
You don't need a loop
x.'*y
  댓글 수: 1
Dominic Lawson
Dominic Lawson 2011년 2월 26일
thanks very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by