error in the enumeration

조회 수: 1 (최근 30일)
surendra kumar Aralapura mariyappa
댓글: Walter Roberson 2019년 6월 12일
Seriously I don't know sometimes what will happen to MATLAB.
%% This is my enum class file
classdef Connection
enumeration
Series, Parallel
end
end
but
>>C2 = Connection.Parallel
The class Connection has no property or method named 'Parallel'.
it is showing error.
>> C1 = Connection.Series
C1 =
Series
It's working for series, not for parallel.
It's working for this class file properly for both Metal and Air, why not for Parallel?
classdef Materials
enumeration
Metal, Air
end
end
Kindly get me out of this shit.
Thanks in advance.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 6월 12일
It works for me. Perhaps you have an old version of the file stuck.
clear Connection
and try again.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

제품


릴리스

R2014a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by