Filter löschen
Filter löschen

Property validation for a vector

1 Ansicht (letzte 30 Tage)
Safwane Benbba
Safwane Benbba am 27 Nov. 2020
Kommentiert: Ameer Hamza am 28 Nov. 2020
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

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 27 Nov. 2020
You can use mustBeVector validation function.
properties
Col {mustBeVector}
end
  4 Kommentare
Safwane Benbba
Safwane Benbba am 27 Nov. 2020
I'm using R2019a, it says I can't update because I'm using the last version.
Ameer Hamza
Ameer Hamza am 28 Nov. 2020
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by