Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

simunlik Tex help

93 views
Skip to first unread message

Cyrus

unread,
Jul 27, 2008, 7:30:05 PM7/27/08
to
Hi, I'm trying to add in some text to a wire in simulink.

I cant figure out how to get a dot over the letter, as in
\cod{\phi}

It does not put a dot over phi.

Also, I cant get fractions to work either.


\frac{a]{b} does not give me a/b as an output in simunlink.

Any help is appreciated!

Praetorian

unread,
Jul 27, 2008, 11:23:25 PM7/27/08
to

AFAIK signal names in Simulink don't support Tex.

Cyrus

unread,
Jul 28, 2008, 2:15:06 AM7/28/08
to
Praetorian <ashish.s...@gmail.com> wrote in message
<a9c68830-e948-4d3f-b596-
169ceb...@t1g2000pra.googlegroups.com>...
> On Jul 27, 5:30=A0pm, "Cyrus " <cyrusabdoll...@msn.com>

Right, but you can double click anywhere in the design
window and add text. Then if you right click this text box
it says 'enable tex commands'

So, im not actually labeling the wire. I just move this
label near the wire and it looks the same. Id like to label
it with dots or fractions.

Praetorian

unread,
Jul 28, 2008, 11:31:01 AM7/28/08
to
On Jul 28, 12:15 am, "Cyrus " <cyrusabdoll...@msn.com> wrote:
> Praetorian <ashish.sadanan...@gmail.com> wrote in message
>
> <a9c68830-e948-4d3f-b596-
> 169ceba69...@t1g2000pra.googlegroups.com>...

Sorry, I didn't realize you were adding annotations and not naming
signals. The reason those commands don't work is because they are
Latex commands and Simulink annotations only support Tex. Search the
help documentation for "Text Properties" and scroll down that page for
a list of supported Tex commands.

HTH,
Ashish.

Christoph

unread,
Jul 11, 2012, 4:47:21 AM7/11/12
to
"Cyrus" wrote in message <g6j0ds$1qp$1...@fred.mathworks.com>...
Hi,
I know the question is 4 years old but I found this post with google. To the question itselfs: In the current MatlabVersion 2012a a property named 'texmode' for portlabels in masks is embedded. To use Tex-Commands in a portlabel you have to use the following Command:

port_label('output',1,'Tex_{Stirng}','texmode','on')

where the third argument is the desired string. Maybe it works for different labels the same way.

regards,
CN
0 new messages