Prev: differential equation - problem
Next: Singleton GUI
From: roya olyazadeh on 6 Jun 2010 04:03 I have this data: sline=300/Ss; this is scale for my plot I want to print it near my plot sline = 0.8 like this : Scale : 0.08 I know I should use textm but how can I use it ? textm(0,0,' Scale: ',sline) this one didnot work.
From: Wayne King on 6 Jun 2010 06:39 "roya olyazadeh" <roya2543(a)gmail.com> wrote in message <hufknt$bsd$1(a)fred.mathworks.com>... > I have this data: > > sline=300/Ss; > > this is scale for my plot I want to print it near my plot > > sline = 0.8 > like this : > > Scale : 0.08 > > I know I should use textm but how can I use it ? > > textm(0,0,' Scale: ',sline) this one didnot work. Hi, not sure you need textm, how about just text()? I think you should give people a few lines of code to plot something similar to what you're seeing. Wayne
From: roya olyazadeh on 6 Jun 2010 07:11 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hufts9$5io$1(a)fred.mathworks.com>... > "roya olyazadeh" <roya2543(a)gmail.com> wrote in message <hufknt$bsd$1(a)fred.mathworks.com>... > > I have this data: > > > > sline=300/Ss; > > > > this is scale for my plot I want to print it near my plot > > > > sline = 0.8 > > like this : > > > > Scale : 0.08 > > > > I know I should use textm but how can I use it ? > > > > textm(0,0,' Scale: ',sline) this one didnot work. > > Hi, not sure you need textm, how about just text()? I think you should give people a few lines of code to plot something similar to what you're seeing. > > Wayne I need to use textm.. because in my plot I am using ellipse1 and linem .. how can I write ?? for example I have this data : 1 1000.000000 1000.000000 2 938.857 894.1000 3 814.459 956.706 4 878.926000 1021.071000 5 911.951 959.432 Stn=[1 2 3 4 5 ] X=[ 1000.000000 938.857 814.459 878.926000 911.951 ] Y=[ 1000.000000 894.1000 956.706 1021.071000 959.432 ] I used plotm(X(i+1),Y(i),'r*') to plot my points. and I want to see station number near each point. Stn and X and Y is changeable so I cannot add text manually like this: textm(1000,1000,' 1') I need to call Stn in textm like this : textm(X(i),Y(i),' Stn') what is the solution for this command ??
From: Steven Lord on 6 Jun 2010 22:36 "roya olyazadeh" <roya2543(a)gmail.com> wrote in message news:hufknt$bsd$1(a)fred.mathworks.com... >I have this data: > sline=300/Ss; > > this is scale for my plot I want to print it near my plot > sline = 0.8 like this : > Scale : 0.08 > > I know I should use textm but how can I use it ? > textm(0,0,' Scale: ',sline) this one didnot work. Build your string using something like SPRINTF and then pass the string created by SPRINTF into TEXTM. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: roya olyazadeh on 10 Jun 2010 16:22
"Steven Lord" <slord(a)mathworks.com> wrote in message <huhluf$9c3$1(a)fred.mathworks.com>... > > "roya olyazadeh" <roya2543(a)gmail.com> wrote in message > news:hufknt$bsd$1(a)fred.mathworks.com... > >I have this data: > > sline=300/Ss; > > > > this is scale for my plot I want to print it near my plot > > sline = 0.8 like this : > > Scale : 0.8 > > > > I know I should use textm but how can I use it ? > > textm(0,0,' Scale: ',sline) this one didnot work. > > Build your string using something like SPRINTF and then pass the string > created by SPRINTF into TEXTM. > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > To contact Technical Support use the Contact Us link on > http://www.mathworks.com > Can you a little bit more describe what should I do ? |