Unexpected error on line with property validation

조회 수: 2 (최근 30일)
Pavel Rubis
Pavel Rubis 2020년 5월 28일
댓글: Rik 2020년 9월 8일
Could u guys pls help me? There is a peace of code with definiton of class propreties:
classdef CellularAutomat
properties
FieldType logical
BordersType {mustBeInteger, mustBeInRange(BordersType,[1,3])}
N double {mustBePositive, mustBeInteger}
Base function_handle
Lambda function_handle
Zbase double
Miu0 double= 0
Miu double = 1
Cells(1,:) CACell
end
I have developed it on R2017B, so everything, of cource, was ok.
But on the R2016A takes pleace a strange error:
Error: File: myfile.m Line: 6 Column: 21
Unbalanced or unexpected parenthesis or bracket.
Line: 6 Column: 21 - is location of a brace opening the list of property validation functions after the property BordersType.

채택된 답변

Steven Lord
Steven Lord 2020년 5월 28일
The ability to validate property values that way was introduced in release R2017a. It won't work in earlier releases.

추가 답변 (1개)

Ramachandrareddy Gadi
Ramachandrareddy Gadi 2020년 9월 8일
A = [1 2 3
4 5 6
7 9 0]
A =
3ff0000000000000 4000000000000000 4008000000000000
4010000000000000 4014000000000000 4018000000000000
401c000000000000 4022000000000000 0000000000000000
A
A =
3ff0000000000000 4000000000000000 4008000000000000
4010000000000000 4014000000000000 4018000000000000
401c000000000000 4022000000000000 0000000000000000
  댓글 수: 1
Rik
Rik 2020년 9월 8일
This isn't an answer. It was intially caught by the spam filter, although it doesn't look like spam to me.
What is you question? It looks like your format is set to display the hex representation of the data. Is your question how to undo that?

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

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by