Unbalanced or Unexpected Paranthesis or Bracket Error
Show older comments
İ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 Comments
Nathan Jessurun
on 13 Feb 2019
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
on 13 Feb 2019
Edited: Geoff Hayes
on 14 Feb 2019
Answers (1)
Geoff Hayes
on 14 Feb 2019
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...
1 Comment
Anil Cekic
on 14 Feb 2019
Categories
Find more on Descriptive Statistics 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!