Why do I have a Syntax Error?
Ältere Kommentare anzeigen
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 Kommentare
Jan
am 19 Jul. 2012
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
am 21 Jul. 2012
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 19 Jul. 2012
Maybe you want
BuyMatrix = [k, idx(i); k, p(idx(i))];
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!