From: Bruno Luong on 30 May 2010 07:05 > F = [((XX(1)-cx)/ax)^2 + ((XX(2)-cy)/ay)^2 + ((XX(3)-cz)/az)^2 -1; % <- Here the parse interpret as 2-column. F = [ (pi-1); 0] % work F = [ pi -1; 0] % don't Break down the big expression in smaller one. That makes your code much more visible and easy to maintain. Bruno
From: Bruno Luong on 30 May 2010 07:14 "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <httgp6$gv6$1(a)fred.mathworks.com>... > > Break down the big expression in smaller one. That makes your code much more visible and easy to maintain. > And second advise: When programming, always check individual function works before putting them together. In your case you seem never check F alone. Bruno
From: Els on 30 May 2010 09:07 "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <httgp6$gv6$1(a)fred.mathworks.com>... > > > F = [((XX(1)-cx)/ax)^2 + ((XX(2)-cy)/ay)^2 + ((XX(3)-cz)/az)^2 -1; % <- Here the parse interpret as 2-column. Dear Bruno, Can you maybe explain what you mean by " Here the parse interpret as 2-column." Thanks again. Best wishes
From: Bruno Luong on 30 May 2010 09:16 "Els " <y.e.t.reeuwijk(a)student.utwente.nl> wrote in message <httnto$hfq$1(a)fred.mathworks.com>... > "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <httgp6$gv6$1(a)fred.mathworks.com>... > > > > > F = [((XX(1)-cx)/ax)^2 + ((XX(2)-cy)/ay)^2 + ((XX(3)-cz)/az)^2 -1; % <- Here the parse interpret as 2-column. > > Dear Bruno, > > Can you maybe explain what you mean by " Here the parse interpret as 2-column." Sorry for the typo , should read "Here the parser interprets as 2-column." Think about the examples I gave: F = [pi -1; 0] F = [(pi -1); 0] Bruno
From: Els on 30 May 2010 10:20 Wow Bruno, this did the trick. It solved all my 7 variables in once. Thanks again.
First
|
Prev
|
Pages: 1 2 3 Prev: I am also getting this error Next: Welch spectrum using Hamming window |