Generate all possible Candidates matrix ?? nonlinear system
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
if i have function
P = GenCand ( x , y , k , l , Order )
how i can Calculate the no of Candidates terms?
i wrote this
NoTerms = (1 + (k + 1) + l + size( combsrep( 0 : k , Order) , 1 ) + size( combsrep( 1 : l , Order) , 1 ) + ...
(k + 1) * l;
but i got error
Expression or statement is incorrect--possibly unbalanced (, {, or [.
please help me
0 Kommentare
Antworten (1)
Walter Roberson
am 13 Dez. 2017
In the below, under each (| and |) I put a digit indicating the number of active bracket levels "after" the character above it.
NoTerms = (1 + (k + 1) + l + size( combsrep( 0 : k , Order) , 1 ) + ...
1 2 1 2 3 2 1
size( combsrep( 1 : l , Order) , 1 ) + ...
2 3 2 1
(k + 1) * l;
2 1
so somehow we have reached the end of the line having started one more (| than you have matching |)
Siehe auch
Kategorien
Mehr zu Control System Toolbox 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!