Filter löschen
Filter löschen

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 Ansichten (letzte 30 Tage)
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.

Antworten (1)

Sebastian Castro
Sebastian Castro am 23 Okt. 2015
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

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by