Why do I have a Syntax Error?
이전 댓글 표시
Why is this incorrect? how do I correct this?
BuyMatrix=(k,idx(i)) (k,p(idx(i)));
Error: File: pairstrading.m Line: 204 Column: 34 Expression or statement is incorrect--possibly unbalanced (, {, or [.
all variables are correctly specified as far as i know
just a problem with syntax and brackets
thanks
댓글 수: 2
Jan
2012년 7월 19일
This is obviously no valid Matlab syntax. As long, as you do not explain, what you wnat to achieve, it is impossible to guess ameaningful suggestion for improvement. So please clarify, what this command should do.
Tomasz Mlynowski
2012년 7월 21일
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 7월 19일
Maybe you want
BuyMatrix = [k, idx(i); k, p(idx(i))];
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!