HOW TO CREATE THİS MATRİX

조회 수: 4 (최근 30일)
MERT METIN
MERT METIN 2019년 3월 5일
편집: madhan ravi 2019년 3월 5일
100x100 matrix
0 1 2 ....... 99
1 2 3 ....... 100
2 3 4 ....... 101
. . . ........ .......
. . . ....... ........
. . . ....... .......
99 100 101 102 ..... 198
  댓글 수: 3
MERT METIN
MERT METIN 2019년 3월 5일
no right run
HilaN
HilaN 2019년 3월 5일
why not? this is the matrix you wanted, or I didn't got right what you are asking..

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

답변 (3개)

Stephan
Stephan 2019년 3월 5일
편집: Stephan 2019년 3월 5일
Hi,
beginning from R2016b you can use:
A = [0:99] + [0:99]'
or - with respect to Madhans comment for prior releases:
B = bsxfun(@plus, [0:99], [0:99]')
Best regards
Stephan
  댓글 수: 8
Stephan
Stephan 2019년 3월 5일
Madhan is right. Show your attempts so far and tell us where your secific problems are.
MERT METIN
MERT METIN 2019년 3월 5일
this question is not only one. ı have another questions from homework but ı did others. Just this question ı did not. Thank you for everything.

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


madhan ravi
madhan ravi 2019년 3월 5일
Just add the column vector which goes from 0 to 99 (step size 1) with the row vector which also has the same starting point and ending point as same as the column vector (step size 1).
doc colon
  댓글 수: 1
madhan ravi
madhan ravi 2019년 3월 5일
If your version is prior to 2016b use bsxfun() with plus.

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


Andrei Bobrov
Andrei Bobrov 2019년 3월 5일
hankel(0:99,(0:99)+99);
  댓글 수: 1
MERT METIN
MERT METIN 2019년 3월 5일
not completely true

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by