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: shank1207
Subject: Re: Hello extracting the coordinates of a data point.
Date: Mon, 16 Oct 2017 23:55:56 -0700 (MST)

Hello Doug,

I use a hold on to place one set of data on the other, so i dont have a
coordinates as a vector of the data points. I want to be able to extract it
from the figure. 
 
Here is my code,

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



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]