Ältere Kommentare anzeigen
Can I solve [x] in the relation [C]*[x]=[d] using x= lsqnonneg(C,d);? Vector dimensions are as follows C(5x2), d(5x1). If not please suggest me better way.
Thank you,
Akzeptierte Antwort
Weitere Antworten (1)
Titus Edelhofer
am 11 Jan. 2012
Hi,
if you take a closer look at your data you observe:
1. the two columns of C are very similar, therefore it's no surprise that using lsqnonneg you get one positive value and a zero.
2. If you do the following:
x = C(:,1)./d
you get values 2.4, 2.3, 2.2, 2.1, ..., 0.62, 0.61. The quadratic mean will be about the value you get from lsqnonneg and (from the data) it's not clear why the value should be less then one.
Titus
1 Kommentar
Abex
am 12 Jan. 2012
Kategorien
Mehr zu Work with Components finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!