フィルターのクリア

How to store cylinderModel properties

2 ビュー (過去 30 日間)
Tina
Tina 2017 年 5 月 16 日
編集済み: Ben Pfeiffer 2018 年 7 月 5 日
Hello, I created a cylinder (class cylinderModel) from a point cloud using pcfitcylinder. I get all the properties listed but I don't know how to store them separately. Does anyone know how to do this?
>> model = pcfitcylinder(ptCloud, maxDistance)
model =
cylinderModel with properties:
Parameters: [4.8176 30.2155 -1.9998 5.3791 49.6812 -3.4029 2.8086]
Center: [5.0984 39.9483 -2.7013]
Orientation: [0.5614 19.4658 -1.4030]
Height: 19.5243
Radius: 2.8086

回答 (1 件)

Ben Pfeiffer
Ben Pfeiffer 2018 年 7 月 5 日
編集済み: Ben Pfeiffer 2018 年 7 月 5 日
Hi Tina, although this requires declaring new variables, you could set up something like
Radius = model.Radius;
Likewise, you can use these calls directly in a line of code if you don't want to bog down your workspace with extra variables. Hopefully this helps,
Ben

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by