Strange error on my source code
9 ビュー (過去 30 日間)
古いコメントを表示
Matlab is telling me that my declaration of variables is invalid. I've tried putting a "clear all" before the declaration, but it still tells me there is an error in the code. Does anyone know the answer for this? It seems so trivial...
3 件のコメント
dpb
2013 年 10 月 23 日
What really need is code and error in context...do whatever it was that caused the error and then cut and paste it here along with whatever function it was source
採用された回答
Walter Roberson
2013 年 10 月 23 日
The part from
%%diferentes codificacoes
on downwards is not inside any "function". You cannot have a script in the same file you declare a function. You need to move that line through to the end into a different file.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!