How to check a function input to be ptcloud object?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Philipp Schnabel
am 4 Jun. 2019
Kommentiert: Philipp Schnabel
am 4 Jun. 2019
Hello,
I want to right some functions, which will have the matlab ptCloud objects as inputs. I want to validate the inputs at the beginn of the function, I know I can use inputParser to do that, but it looks like it doesn't like the object as an input at all.
0 Kommentare
Akzeptierte Antwort
Titus Edelhofer
am 4 Jun. 2019
Hi Philipp,
probably you are looking for the function "isa":
function myfun(x)
if ~isa(x, 'ptCloud')
error('Input argument x must be ptCloud object')
end
Titus
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!