Property validation for a vector

조회 수: 1 (최근 30일)
Safwane Benbba
Safwane Benbba 2020년 11월 27일
댓글: Ameer Hamza 2020년 11월 28일
How can I check that the property of a class is a vector?
This is what I have but it doesn't work:
properties
Col vector
end

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 27일
You can use mustBeVector validation function.
properties
Col {mustBeVector}
end
  댓글 수: 4
Safwane Benbba
Safwane Benbba 2020년 11월 27일
I'm using R2019a, it says I can't update because I'm using the last version.
Ameer Hamza
Ameer Hamza 2020년 11월 28일
Updates are only valid for a single release. You need to upgrade a license to use a new release. Upgrades cannot be applied to current version. You need a fresh installation.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by