- Save the model with specific model name.
- Create a variable in MATLAB and store the block path.
- Use the 'get_params' function,specifying the block path and attribute.
Are the grayed-out tire parameter fields in the "Combined Slip Wheel 2DOF" block closed-source, and if not, how can they be accessed?
7 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Manish
on 29 Jan 2025
Edited: Manish
on 31 Jan 2025
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:
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!
0 Comments
See Also
Categories
Find more on Tires and Vehicles in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!