Writing text in fraction in Mask in Simulink

33 次查看(过去 30 天)
Hey there folks,
I'm trying to write q/delta_e, but then in as a fraction and with greek symbol, obviously. I want to do this in the Mask editor in Simulink. My take on it was this:
text(0.35,0.5,'$\frac{q}{\delta_e}$','interpreter','latex','EdgeColor','k');
However, it says "latex is an invalid entry for 'text' drawing command parameter 'interpreter' in block ..."
Any suggestions?
Thanks in advance,
Daam

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2021-2-2
Click "Help" in the Mask Editor to see the supported function for icon drawing. Search document for "Greek Letters and Special Characters in Chart Text"
text(0.35,0.5,['q/',char(916)])
  4 个评论
Daam Schoon
Daam Schoon 2021-2-4
Ah alright, good to know, I think I'll just accept the block without the mask :) Thank you for your answers!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by