Generate all possible Candidates matrix ?? nonlinear system
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Walter Roberson
on 13 Dec 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 |)
See Also
Categories
Find more on Control System Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!