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

3 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2012-12-12
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 个评论
Ara
Ara 2012-12-13
编辑:Ara 2012-12-13
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')

请先登录,再进行评论。

更多回答(1 个)

Image Analyst
Image Analyst 2012-12-12
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.

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by