Re: Plotting question
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Thu, 31 Jan 2008 20:07:10 +0000 (UTC)
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
.
- Follow-Ups:
- Re: Plotting question
- From: Matthew Allen
- Re: Plotting question
- References:
- Plotting question
- From: Matthew Allen
- Re: Plotting question
- From: Matthew Allen
- Re: Plotting question
- From: Walter Roberson
- Re: Plotting question
- From: Matthew Allen
- Plotting question
- Prev by Date: Simple(?!) GUI Editbox question.
- Next by Date: Re: Simple(?!) GUI Editbox question.
- Previous by thread: Re: Plotting question
- Next by thread: Re: Plotting question
- Index(es):
Relevant Pages
|