Re: Plotting question



In article <fnt7g1$id5$1@xxxxxxxxxxxxxxxxxx>,
Matthew Allen <allenmatthew@xxxxxxxxx> wrote:
thanks for your help I really appreciate but I still have
another problem when I try your code I get this error

??? Error using ==> horzcat
CAT arguments dimensions are not consistent.

Error in ==> plot_program at 9
xs = [x1(:),x2(:),nan(size(rx,1),1)];

any idea what is causing it?

Sorry, replace the size(rx,1) by 2*length(rx)
Also, add .' at the end of xs and ys:

xs = [x1(:),x2(:),nan(2*length(rx),1)].';

ys = [y1(:),y2(:),nan(2*length(rx),1)].';


Note: with your small sample data, it is correct that you
will get out what appears to be a single diagonal line that
is a bit thicker in the center.
--
"All is vanity." -- Ecclesiastes
.



Relevant Pages