Syntax error writing two classdef's
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I'm working with LTE-A simulator based on matlab.I tried to define two classdef's in one script and got an syntax error.
Can anyone help me how to write two classdef's in one script??
Esra
0 件のコメント
回答 (2 件)
Adam
2016 年 12 月 19 日
Why do you want two classdefs in one script?
For a start you can't define any classes in a script, and secondly each class must have its own file with the same name as the class, so you would need two distinct files, one for each class and then a third file containing a script, function or another class that uses these.
0 件のコメント
havva esra bilisik
2016 年 12 月 19 日
1 件のコメント
Adam
2016 年 12 月 19 日
編集済み: per isakson
2016 年 12 月 29 日
It depends entirely on the classes. There's no real reason to do this normally.
Please reply in comments though, don't add an answer that is really just a comment.
参考
カテゴリ
Help Center および File Exchange で Parallel Computing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!