Are the grayed-out tire parameter fields in the "Combined Slip Wheel 2DOF" block closed-source, and if not, how can they be accessed?

3 ビュー (過去 30 日間)
Hello,
I was looking into the block "Combined Slip Wheel 2DOF" and I noticed that selecting predefined models like "Light passenger car 205/60R15" or "Mid-size passenger car 235/45R18" results in most tire parameter fields being grayed out, with only a few editable unless the "load from external file" option is selected. Are these fields grayed out because the models are closed-source, and the parameter values are not publicly accessible? If they are publicly available, is there a way to access these values?

回答 (1 件)

Manish
Manish 2025 年 1 月 29 日
編集済み: Manish 2025 年 1 月 31 日
Hi Kenneth,
I understand that you want to access the grayed-out tire parameters for the 'Combined Slip Wheel 2DOF' block.
This can be achived by the following steps:
  1. Save the model with specific model name.
  2. Create a variable in MATLAB and store the block path.
  3. Use the 'get_params' function,specifying the block path and attribute.
Here is the sample code:
%blockPath='your_model_name/your_block_name'
blockPath = 'car/Combined Slip Wheel 2DOF'; % my_model_name=car
%Parameter_value = get_param(blockPath, 'attribute_name')
Parameter_value=get_param(blockPath, 'LONGITUDINAL_STIFFNESS');
The grayed-out parameters have different attributes. For example, the 'Structural' category includes the 'LONGITUDINAL_STIFFNESS' attribute. These attributes are used in the code and can be found on the documentation page.
Refer the below documentation links for better understanding:
Hope it helps!

カテゴリ

Help Center および File ExchangeTires and Vehicles についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by