Express a matrix as product of elementary matrices

12 visualizzazioni (ultimi 30 giorni)
Shaukhin
Shaukhin il 1 Apr 2023
Risposto: KSSV il 1 Apr 2023
How to express a matrix as a product of some necessary elementary matrices? Is there any function in matlab?

Risposte (1)

KSSV
KSSV il 1 Apr 2023
If you have a number, you can try to get its multiples or product of numbers using:
x = 10;
v = 2:x/2;
c = v(mod(x,v)==0)
c = 1×2
2 5

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by