How to create a matrix B=[bij]=[max(i,j)] belongs to class of rectangular matrices

3 visualizzazioni (ultimi 30 giorni)
Please answer me

Risposta accettata

Birdman
Birdman il 9 Feb 2018
One way is symbolical:
i=3;j=4;
B=sym('B',[i j])

Più risposte (1)

Christine Tobler
Christine Tobler il 12 Feb 2018
Focusing on the max(i, j) part, you could use
i = 3;
j = 4;
B = max((1:i)', (1:j));

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by