I run Matlab home and I have run these commands n=6
n =
6
C= randn(n)
C =
0.5377 -0.4336 0.7254 1.4090 0.4889 0.8884
1.8339 0.3426 -0.0631 1.4172 1.0347 -1.1471
-2.2588 3.5784 0.7147 0.6715 0.7269 -1.0689
0.8622 2.7694 -0.2050 -1.2075 -0.3034 -0.8095
0.3188 -1.3499 -0.1241 0.7172 0.2939 -2.9443
-1.3077 3.0349 1.4897 1.6302 -0.7873 1.4384
[L,U,P,Q,R] = lu(C) {Error using href="matlab:matlab.internal.language.introspective.errorDocCallback('lu')" style="font-weight:bold">lu</a Too many output arguments. } Why? the syntax is the one of your help page on lu and my licence is on my mac book air. Thanks
Mario Arioli

 Réponse acceptée

Bruno Luong
Bruno Luong le 1 Nov 2018
Modifié(e) : Bruno Luong le 1 Nov 2018

0 votes

The four and five-output syntax are only applicable for sparse input matrix.
You can try by converting your dense matrix to sparse:
[L,U,P,Q,R] = lu(sparse(C))

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by