Generate all possible Candidates matrix ?? nonlinear system

4 ビュー (過去 30 日間)
AHMED ALRASHEDY
AHMED ALRASHEDY 2017 年 12 月 13 日
コメント済み: AHMED ALRASHEDY 2017 年 12 月 13 日
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

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 12 月 13 日
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 |)

カテゴリ

Help Center および File ExchangeControl System Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by