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

3 Ansichten (letzte 30 Tage)
Please answer me

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by