From: Amanda on
Hi all, I'm having some problems with ginput. Here's the code I was told to start with
figure('position',get(0,'screensize'))
axes('position',[0 0 1 1])
[x,y] = ginput;
to collect mouse clicks. From there, I need to treat x and y as two separate functions, then interpolate them using this given code
n = length(x);
s = (1:n)';
t = (1:.05:n)';
u = splinetx(s,x,t);
v = splinetx(s,y,t);
clf reset
plot(x,y,'.',u,v,'-');

My questions are is ginput supposed to draw the points out as it's clicked (if so, mine won't, how do I fix that?) or just leave a blank window? Also, how do you quit and save the data points?

Thanks in advance.
 | 
Pages: 1
Prev: Noise variance
Next: ecg project