MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: '\rightarrow' in text problem

 Subject: '\rightarrow' in text problem From: J G Date: 17 Apr, 2011 05:40:05 Message: 1 of 3 I'm using the following code, however I want to include a '\rightarrow'. If I include this in the string I get an error because the latex interpreter doesn't work. How can I keep the 'p*' in latex but include a '\rightarrow' too? text('Interpreter','latex',... 'String','${p*}$',... 'Position',[0,0.347],... 'FontSize',12) Thanks, J.
 Subject: '\rightarrow' in text problem From: Wayne King Date: 17 Apr, 2011 09:30:19 Message: 2 of 3 "J G" wrote in message ... > I'm using the following code, however I want to include a '\rightarrow'. If I include this in the string I get an error because the latex interpreter doesn't work. How can I keep the 'p*' in latex but include a '\rightarrow' too? > > text('Interpreter','latex',... > 'String','${p*}$',... > 'Position',[0,0.347],... > 'FontSize',12) > > Thanks, J. Hi J, I'm not sure I understand your problem exactly, does this work for you?  text(x,y,'$p* \rightarrow$','Interpreter','latex',... 'FontSize',12) because it works for me. Is this not what you want? Wayne
 Subject: '\rightarrow' in text problem From: J G Date: 17 Apr, 2011 21:00:20 Message: 3 of 3 "Wayne King" wrote in message ... > "J G" wrote in message ... > > I'm using the following code, however I want to include a '\rightarrow'. If I include this in the string I get an error because the latex interpreter doesn't work. How can I keep the 'p*' in latex but include a '\rightarrow' too? > > > > text('Interpreter','latex',... > > 'String','${p*}$',... > > 'Position',[0,0.347],... > > 'FontSize',12) > > > > Thanks, J. > > Hi J, I'm not sure I understand your problem exactly, does this work for you? > > text(x,y,'$p* \rightarrow$','Interpreter','latex',... > 'FontSize',12) > > because it works for me. Is this not what you want? > > Wayne Hi Wayne, This works thanks for your help!