it seems like yet again i may have to trouble all you good folks with
another of my problem. say i have a data file in the following format
x0 y0 r0
x1 y1 r1
x2 y2 r2
x3 y3 r3
.. . .
.. . .
xn yn rn
it has 3 columns.
how may i go about plotting a circle of radius r0 centered at (x0,y0)
and a circle of radius r1 at (x1, y1) .... and a circle at (xn, yn)
of radius rn
that is instead of something like
plot 'datafile' u 1:2 w p
i want something like the following
plot 'datafile' u 1:2 with circle_of_radius $3.
this might be useful in a context of clustering where the cluster
centers have the location (x_i, y_i) while the corresponding cluster
indicated by the radius value.
many thanks in advance
Awhan Patnaik wrote:
> hello all
> it seems like yet again i may have to trouble all you good folks with
> another of my problem. say i have a data file in the following format
> x0 y0 r0
> x1 y1 r1
> x2 y2 r2
> x3 y3 r3
> . . .
> . . .
> xn yn rn
> it has 3 columns.
> how may i go about plotting a circle of radius r0 centered at (x0,y0)
> and a circle of radius r1 at (x1, y1) .... and a circle at (xn, yn)
> of radius rn
> that is instead of something like
> plot 'datafile' u 1:2 w p
> i want something like the following
> plot 'datafile' u 1:2 with circle_of_radius $3.
You are in luck. Exactly this form of plot is supported in version 4.4.
plot 'datafile' u 1:2:3 with circles
[plot] Updating matrix data in plot Hello everyone!
I have a little problem. I plot a matrix data and then I want to update 'xdata' and 'ydata' by using 'set'. This code explains my problem:
x = [1 1 2 2 1;
5 5 6 6 5];
y = [1 2 2 1 1;
5 6 6 5 5];
h = plot(x',y');
%I plot some (i this example two) rectangles.
axis([0 7 0 7]);
x = x+1; %I add a constant to make an illusion of movement.
y = y+1; %As above.
set(h,'xdata',x','ydata',y') % <- error
When I use 'set'...
data tips in a plot Hi
I am facing the following challenge:
I have plotted fixed income bonds data in a scatterplot. I would like to know if it is possible to click on one such datatip and information about that tip is provided. e.g the name of the bond (datatip). In the figure I see there is a data cursor and if I use that and click on a datatip the only information that is shown is X = 2016 (the x axis value, the maturity of a bond) and Y = 251 (the y axis value, the spread).. Is there some way where I can provide a string to denote what that data point represents (a bonds that matures in 2016 (the x axi...
plotting GIS data Hi!
I have interior (furnitures and walls) floor plan data in GIS format (DAT, MIDI, MIF file)Have anyone here have done plotting those data in Matlab?
Thanks in advance.
data plotting querry Dear friends,
Im new in using matlab and i face the following problem.
I have a file that contains 4 colums of data (x,y,z,v). The first 3
represent the map coordinates of an area im interested and the 4th
the parameter in checking.
I want to do the following:
I want to make a surface plot of the map and on that surface to be
able to view the 4th parameter in a colour coded way.
So, i want to have a terrain of an area on which i will be able to
see the values of the 4th parameter im interested in in colour coded
Thank you in advance for your help,
With kind regards,
Plotting 3d data Hello everyone,
I've got data which includes includes x, y, z position and light intensity in data file (example below).
-1995.510728 -3810.634328 201.434235 0.231255
-1985.307836 -3810.634328 201.434235 0.221061
-1975.338153 -3810.634328 201.434235 0.266298
-1965.426772 -3810.634328 201.434235 0.282227
-1955.340485 -3810.634328 201.434235 0.267573
-1945.487407 -3810.634328 201.434235 0.274581
-1935.459422 -3810.634328 201.434235 0.273307
-1925.606343 -3810.634328 201.434235 0.266935
-1915.636660 -3810.634328 201.434235 0.303890
-1905.608675 -3810.634328 201....
plot matrix data I am trying to plot a 3D graph of DNA melting. The data is 122x82. I
just mesh the data and could get the 3D plot. One problem is that the
X axis is from 1 to 121 so does the y is from 1 to 81. But the actual
value for X axis should be from 219 to 340 and Y from 19 to 100. How
can I do that?
"Jane Ren" <firstname.lastname@example.org> wrote in message
>I am trying to plot a 3D graph of DNA melting. The data is 122x82. I
> just mesh the data and could get the 3D plot. One problem is that the
> X axis is from 1 to 121...
Plotting Borehole data. Apologies, I am new to MATLAB.
I am trying to create a 3D image of borehole data.
I have say 10 boreholes at different x,y locations, each with a data value at ~1000 different depth (z) values.
How can I plot this in 3D and interpolate between the boreholes to define layering etc?
I have been advised that I can use interp3, however I am unsure how I can easily read-in so many z data points and create multidemensional arrays.
Any advice is appreciated, thank you.
"Adrian McCallum" <email@example.com> wrote in message <firstname.lastname@example.org>...
problem in plotting data Hi, All,
suppose data (it can be any data):
x = -pi:0.01:pi;
y = sin(x);
Now plot the data pare:
I get the plot in which y-scale is log. But if I write:
I cannot get it in semilogy, but in linear scale.
Does anyone know why?
> Hi, All,
> suppose data (it can be any data):
> x = -pi:0.01:pi;
> y = sin(x);
> Now plot the data pare:
> hold on
> I get the plot in which y-scale is log. But if I write:
> hold on
plotting a cyclic data Hi I have a cyclic data set (x,y). x is the temperature and
y is the heat flow. x is from 20 to 120?C and then to 20 and
this repeats. Around 120 (x) the values decreases
continuously (cooling to 20 ?C) like a cycle reaching max
value then decreases. I can split the data and plot
separately but it is time consuming and matlab should have
the capabilities to give different colors and labels to both
heating and cooling cycles. How can I write a simple script
to plot such a cyclic data, with heating and cooling
different colors and labels?
Also in the instrument data there is a breaking...
Mesh plot over a circle Hi,
I want to create a 3D-plot of a function f(x,y)=y
over a unit circle. I tried playing with meshgrid(...)
and mesh(...) but I could only plot f over unit square.
It seems that mesh(...) can only plot over rectangular
areas. Is it so and if not, how would I go about plotting
over unit circle?
<SNIP wants to create a 3D-plot of a function f(x,y)=y over a unit
just a thought:
did you look at
1) the code might be helpful
2) you could try to compute your <z>s as a function of the
initial data on a circle hi guys
I have a mesh on a square. I wish to consider a circle in the square
and put some initial value on the circle. How can I do that?
On Aug 18, 5:16=A0pm, "Mahmoodreza...@gmail.com"
> hi guys
> I have a mesh on a square. I wish to consider a circle in the square
> and put some initial value on the circle. How can I do that?
Have you consulted the FAQ yet?
Try that first and get back to us if you ...
plot some data with a legend Folks
I want to plot some data (I don=92t know how many column) in a single
plot and put a legend for all this plot with different color. I mean
-plot column one in red (and put in legend a line with red color)
-plot column two (over plot on the previous plot) in green (and put in
legend a line with green color)
What is the best way for this?
Any help highly would be appriciated
Did you search this group? You'll find many references to D. Fanning's
I think his site is dfanning.com (not sure cos I have it bookmarked -
I refer to it soooooo of...
How to plot live data What's the best way to plot live data? I can call a MATLAB function to plot the data after every 1000 samples are acquired. If I set the figure's "Next Plot" property to "Add", it adds data to the plot but the x-axis is not good. I want to keep the same duration (eg: 3 seconds) on the x-axis but want to dynamically move the range (eg: 0-3, 1-4, 2-5) as the acquisition keeps going. I guess I could give a time range manually every time new data comes in but maybe MATLAB has an automatic way of doing it.
I don't know much about advanced MATLAB plotting but if you ...
Table of Plot Data Part of a problem I have been assigned is to create a table
that displays the x and y data that I used to create a plot.
Is there a command or easy way to do this in Matlab?
In article <email@example.com>,
Graham Brooks <firstname.lastname@example.org> wrote:
>Part of a problem I have been assigned is to create a table
>that displays the x and y data that I used to create a plot.
>Is there a command or easy way to do this in Matlab?
What kind of table?
>> xx = 1:7; yy = pi/xx;
data fitting circle Can I use "leastsq" command in optimization toolbox, for data fitting
"Petar Jovanovic" <email@example.com> wrote in message
> Can I use "leastsq" command in optimization toolbox, for data fitting
> Thank You.
Plotting a circle #3 Hi,
I have a mesh grid values of X & Y which is a nXn matrix. The thing is that I want to plot a sector of a circle with its corresponding amplitudes on that rectangle. How can it be done.
how to efiiciently plot data in graph I want to acquire onesignal at 1 k freq and plot it contineously. the data should get appended to the graph. but i cant use the chart control for two reasons
1. all the data from 0 time should be visible on screen.
2. i want to dynamically place some markers which will point some perticular analysis in real time.
i have written one program for this but when i run it it contineously shows 100% CPU usage and data in acquisition buffer keeps on increasing. if i reduce the sampling rate to say 20 CPU usage drops down to 20 to 30% how should i improve my code. my test should run for atle...
generate data fom plot suppose i have a scatter plot of y vs x and the axis are ticked with intermediate values.
i wish to generate the all the data of y vs x.
can i do this in matlab????
is yes how can i generate these values.
thanks in advance.
"shahnaz fatima" <firstname.lastname@example.org> wrote in message
> suppose i have a scatter plot of y vs x and the axis are ticked with
> intermediate values.
> i wish to generate the all the data of y vs x.
> can i do this in matlab????
Your question is unclear. Please explain (...
Plot spherical coordinate data I have data measuring the radiation pattern of an antenna which is
basically many data points in space in spherical coordinates (phi,
theta, rho). Can anyone tell me how to get a 3D surface (or mesh)
plot of the data?
In article <email@example.comYaTP>, Lee <firstname.lastname@example.org> wrote:
> I have data measuring the radiation pattern of an antenna which is
> basically many data points in space in spherical coordinates (phi,
> theta, rho). Can anyone tell me how to get a 3D surface (or mesh)
> plot of the data?
RS232 data to plot and store Hello, I need help to store data comming from RS232 serial port. I got the data and I'm able to decode it, but my question is how to store in a dynamic array for later use as plot or store in a text file. I inclose you the program. I also try to select between use the com port or simulate the data in a big register.
I try to enclose my small program but I'm not able.