Variable order matrix with some constant value entry

1 Ansicht (letzte 30 Tage)
RoboKid
RoboKid am 10 Nov. 2013
Kommentiert: RoboKid am 10 Nov. 2013
How to make a matrix with all entries of -1 with a desired order. I want to make a matrix L= [-1 ;-1 ;-1], but size of L is another variable. i.e. I want L = -1 of size (x,y)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Nov. 2013
L = -1 * ones(x, y);

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays 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