- Given some constant block, create a mask for it (CTRL-M or right click and select Mask -> Create Mask).
- In the "Icon & Ports" tab of the mask edit menu, enter the desired text as an input to the "disp" function into the "Icon drawing commands". For example, if you want your block to say value of the constant block (say 5) enter "disp(5)".
- Now you should be able to change the block format like other blocks through the right click context menu (Format -> Font Style for Selection).
How to edit font size of number value inside Simulink dashboard block such as a constant or gain block?
12 次查看(过去 30 天)
显示 更早的评论
I have seen this question asked several times over the years and the latest answer I read was it was to be avaiable in Simulink Release 2021a.
I am using Simulink 2021a and cannot find how to change the numerical value "inside" of a Simulink block such a Constant or Gain block. The Format Font on appies to the texr of the Name outside the block.
Is there a difernt command besides right click on hte block >Format > Format Style for Selection (which only edits the font for the text of the name outside the block) ?
0 个评论
回答(2 个)
Guru Kumaresan
2022-9-6
You can try the following steps:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!