Property validation for a vector
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Ameer Hamza
2020-11-27
You can use mustBeVector validation function.
properties
Col {mustBeVector}
end
Functions are listed here: https://www.mathworks.com/help/matlab/matlab_oop/property-validator-functions.html
4 个评论
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 Center 和 File 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!