help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Hello extracting the coordinates of a data point.
From
:
Doug Stewart
Subject
:
Re: Hello extracting the coordinates of a data point.
Date
:
Tue, 17 Oct 2017 08:34:19 -0400
this should answer your question
clear all;close all;clc;
X=2;
y=1:X;
axe=0:0.6:X;
axe_1=0:1.2:X;
axe_2=0.6:1.2:X;
x=ones(1,length(axe_1));
y=ones(1,length(axe_2));
for jj=1:length(axe_2)
for ii=1:length(axe_1)
y(jj,:)=axe_2(jj);
x(ii,:)=axe_1(ii);
%plot(axe_1,x(ii,:),'*');
plot(-axe_1,x(ii,:),'*',axe_1,-x(ii,:),'*',axe_1,x(ii,:),'*',-axe_1,-x(ii,:),'*');
hold on
plot(-axe_2,y(jj,:),'o',axe_2,-y(jj,:),'o',axe_2,y(jj,:),'o',-axe_2,-y(jj,:),'o');
hold on
end
end
hold off
LineH = get(gca, 'Children');
x1 = get(LineH, 'XData');
y1 = get(LineH, 'YData');
figure
for k=1:length(x1)
x2(k)=double(x1{k}(1));
x3(k)=double(x1{k}(2));
y2(k)=double(y1{k}(1));
y3(k)=double(y1{k}(2));
endfor
plot(x2,y2,'+')
hold on
plot(x3,y3,'o')
hold off
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Hello extracting the coordinates of a data point.
,
shank1207
,
2017/10/16
Re: Hello extracting the coordinates of a data point.
,
Doug Stewart
,
2017/10/16
Re: Hello extracting the coordinates of a data point.
,
Thomas D. Dean
,
2017/10/16
Re: Hello extracting the coordinates of a data point.
,
shank1207
,
2017/10/17
Re: Hello extracting the coordinates of a data point.
,
Doug Stewart
<=
Re: Hello extracting the coordinates of a data point.
,
shank1207
,
2017/10/17
Re: Hello extracting the coordinates of a data point.
,
Thomas D. Dean
,
2017/10/17
Prev by Date:
Re: revised quadcc preserve single?
Next by Date:
Re: Hello extracting the coordinates of a data point.
Previous by thread:
Re: Hello extracting the coordinates of a data point.
Next by thread:
Re: Hello extracting the coordinates of a data point.
Index(es):
Date
Thread