Unbalanced or Unexpected Paranthesis or Bracket Error
古いコメントを表示
İs there any problem with that cod; [theta,se,t]=qreg(tb_26wk,(ones(2585(tb_26wk));_13wk); q(0.1));
Because ı have unbalanced or... error in that command.
Thanks.
2 件のコメント
Nathan Jessurun
2019 年 2 月 13 日
What is the goal of that code? It has a few problems:
- Arguments should be separated by commas, not semicolons (;).
- What are you trying to do with the expression 2585(tb_26wk)? Variables and functions can't start with a letter, so this expression makes no sense.
If you can answer these questions or provide other clarifications you may get some more helpful answers.
Anil Cekic
2019 年 2 月 13 日
編集済み: Geoff Hayes
2019 年 2 月 14 日
回答 (1 件)
Geoff Hayes
2019 年 2 月 14 日
Anil - look carefully at this line of code
[theta,se,t]=qreg(tb_26wk,(ones(2585(tb_26wk));tb_13wk); q(0.1));
As Nathan has already pointed out, there are problems with the above line of code. Why are some parameters (?) separated by semi-colons? What is the signature for the qreg function? Break this down - presumably
- tb_26wk is the first input parameter to this function - is this correct?
- ones(2585(tb_26wk)) are you trying to create an array of ones that is 2585xtb_26wk? Is tb_26wk an integer or something else?
- (ones(2585(tb_26wk));tb_13wk) or are you trying to concatenate some numbers into an array. If that is the case, then use [] instead of ()
- q(0.1) since q is an array, what are you attempting with q(0.1)? This will fail since 0.1 is not an integer (or logical) index into the array...what do you really want to do here?
If you post the function signature for qreg then we can help you further...
カテゴリ
ヘルプ センター および File Exchange で Discriminant Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!