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에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!