Generate all possible Candidates matrix ?? nonlinear system

4 Ansichten (letzte 30 Tage)
AHMED ALRASHEDY
AHMED ALRASHEDY am 13 Dez. 2017
Kommentiert: AHMED ALRASHEDY am 13 Dez. 2017
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

Antworten (1)

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

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!

Translated by