필터 지우기
필터 지우기

I am using constant block which have value equal to 'abc' and one more block having value equal to 4.I dont want to change the constant block name when the value present is numeric.

조회 수: 2 (최근 30일)
I am using constant block which have value equal to 'abc' and one more block having value equal to 4.I dont want to change the constant block name when the value present is numeric.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 10월 23일
Assuming you just want to know if there's a variable or a hard-coded numerical value in your blocks. If so, I would look into the isvarname function to implement your logic:
>> isvarname('4')
ans = 0
>> isvarname('abc')
ans = 1
- Sebastian

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by