- 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?
조회 수: 5 (최근 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?
댓글 수: 0
답변 (1개)
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:
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Tires and Vehicles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!