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

 채택된 답변

Bruno Luong
Bruno Luong 2018년 11월 1일
편집: Bruno Luong 2018년 11월 1일

0 개 추천

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))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2018년 11월 1일

편집:

2018년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by