From: bhaskar on 24 Mar 2010 23:15 I am plotting a graph with x-axis as time and y-axis as tangential acceleration. I am calculating the mean of tangential acceleration. Please advise how to print the value of the variable "mean" on the top right corner of the graph? Thanks
From: Nicholas Kinar on 25 Mar 2010 00:02 On 24/03/2010 9:15 PM, bhaskar wrote: > I am plotting a graph with x-axis as time and y-axis as tangential > acceleration. > I am calculating the mean of tangential acceleration. > > > Please advise how to print the value of the variable "mean" on the top > right corner of the graph? Perhaps use text(x,y,'string')? You may have to experiment with the positions of the x and y coordinates to get the text positioned in the right corner of the graph.
From: Nicholas Kinar on 25 Mar 2010 00:13 > Perhaps use text(x,y,'string')? You may have to experiment with the > positions of the x and y coordinates to get the text positioned in the > right corner of the graph. > The x and y coordinates correspond to coordinates on the axis of your graph. Then, supposing that mean_val = 1.0, the following code should suffice to print the value which corresponds with your calculated value. % BEGIN EXAMPLE CODE mean_val = 1.0; valstring = sprintf('%f', mean_val); text(x, y, valstring);
|
Pages: 1 Prev: Tansfer Matrix Method of DFB laser Next: Code folding: unable to turn on? |