Filter löschen
Filter löschen

How can I circle plot X (a column data in excel format) as a function of Y and Z?

3 Ansichten (letzte 30 Tage)
I want to plot a trajectory of each satellite as a function of longitude and latitude. To plot this would be to use a circle for each point. I mean circle plot as a function of y and z. Each point corresponds to the location where the x (a matrix 1x170) value was determined, and the radius of the circle represent the value of x. Could be 0.1, 0.2, 0.3, 0.4, 0.5 and 0.6. Could you please help me?
  4 Kommentare
Ara
Ara am 12 Dez. 2012
Thank you very much, I upload here http://www.sendspace.com/file/ewdml6 Could you please look at the plot?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Dez. 2012
scatter(y, z, x*50)
50 here is an arbitrary scaling factor. x here is being put in the location of the circle-size argument, but that argument expects a size in points (1/72 of an inch) and as your natural x values are 0.1 or so, you will want to enlarge the circles by some magnification; I arbitrarily used 50 here.
  16 Kommentare
Ara
Ara am 13 Dez. 2012
Bearbeitet: Ara am 13 Dez. 2012
Hi Walter, I am sorry as you guided me yesterday, but still can not plot it in different color. Could you please look at the below code? Thank you. You said 4th argument like this, but I can't match with my program?
scatter(PaskapooFm4(:,3), PaskapooFm4(:,12), [], PaskapooFm4(:,14));
PRN=data_cutoff15(:,3);
[q,u]=size(data_cutoff15);
y=zeros(31,q);
for j=1:q
for z=1:36
if z==PRN(j)
y(z,j)=s4_0(j);
end
end
end
scatter (longi, lati, s4_0(1,:)*2500,'r')
scatter (longi, lati, s4_0(2,:)*2500,'g')
scatter (longi, lati, s4_0(3,:)*2500,'b')
scatter (longi, lati, s4_0(4,:)*2500,'m')
scatter (longi, lati, s4_0(5,:)*2500,'c')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 12 Dez. 2012
Your question is unclear. Do you have a plot/graph/image/axes on your GUI and you want a circle drawn around the whole thing? Perhaps the FAQ will help: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F Do you just want a "marker" of a circle (the letter o) around each plotted data point, like you can do with plot() or scatter()??? I have no idea.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by