Syntax error writing two classdef's
조회 수: 5 (최근 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!