Expressions for Stereotype Default Value
이전 댓글 표시
In the System Composer Profile Editor, is it possible to use an expression to define the default value of a stereotype? For example, I have a camera hardware component that has focal length and effective aperture size defined as properties with no default values. Then I create a new property called "focal_ratio" and I want to set its default value to "focal_length / effective_aperture". I've tried entering several such expressions in to the default value field but always get an error message stating, "Cannot evaluate the expression..." Is there a particular syntax that will allow this to work?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 System Composer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!