HOW TO CREATE THİS MATRİX

5 vues (au cours des 30 derniers jours)
MERT METIN
MERT METIN le 5 Mar 2019
Modifié(e) : madhan ravi le 5 Mar 2019
100x100 matrix
0 1 2 ....... 99
1 2 3 ....... 100
2 3 4 ....... 101
. . . ........ .......
. . . ....... ........
. . . ....... .......
99 100 101 102 ..... 198
  3 commentaires
MERT METIN
MERT METIN le 5 Mar 2019
no right run
HilaN
HilaN le 5 Mar 2019
why not? this is the matrix you wanted, or I didn't got right what you are asking..

Connectez-vous pour commenter.

Réponses (3)

Stephan
Stephan le 5 Mar 2019
Modifié(e) : Stephan le 5 Mar 2019
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 commentaires
Stephan
Stephan le 5 Mar 2019
Madhan is right. Show your attempts so far and tell us where your secific problems are.
MERT METIN
MERT METIN le 5 Mar 2019
this question is not only one. ı have another questions from homework but ı did others. Just this question ı did not. Thank you for everything.

Connectez-vous pour commenter.


madhan ravi
madhan ravi le 5 Mar 2019
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 commentaire
madhan ravi
madhan ravi le 5 Mar 2019
If your version is prior to 2016b use bsxfun() with plus.

Connectez-vous pour commenter.


Andrei Bobrov
Andrei Bobrov le 5 Mar 2019
hankel(0:99,(0:99)+99);
  1 commentaire
MERT METIN
MERT METIN le 5 Mar 2019
not completely true

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by