How to check a function input to be ptcloud object?
2 ビュー (過去 30 日間)
古いコメントを表示
Philipp Schnabel
2019 年 6 月 4 日
コメント済み: Philipp Schnabel
2019 年 6 月 4 日
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 件のコメント
採用された回答
Titus Edelhofer
2019 年 6 月 4 日
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Point Cloud Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!