[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Target Motion Analysis - Geometry Pkg
From: |
Juan Pablo Carbajal |
Subject: |
Re: Target Motion Analysis - Geometry Pkg |
Date: |
Tue, 3 May 2016 11:36:06 +0200 |
On Mon, May 2, 2016 at 10:24 PM, Thomas D. Dean <address@hidden> wrote:
> I want to minimize a difference in lines.
>
> From the previous TMA post, I have an array of lines,
> BrgLines.
>
> If I define
>
> Tarray = (1:size(BrgLines,1))';
> UnkLine = mean(BrgLines);
>
> How do I minimize
>
> pointOnLine(BrgLines,Tarray) - pointOnLine(UnkLine,Tarray)
>
> by adjusting UnkLine and Tarray?
>
> If UnkLine and Tarray have different number of rows, will this evaluation be
> stable? Doc says they 'should' have the same number of rows, not that they
> 'shall'.
>
> Tom Dean
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
Hi Tom,
pointOnLine will just fail if you give several lines and several
points on the line (given by distances Tarray). It will work either if
you have one line per point, one line and many points, or one point
and many lines. For any other case you will need to use cellfun or
arrayfun (or if it is only a few lines/points you can do a loop)
I do not understand exactly what you are trying to do, hence I can't
give you precise help. I saw your code and your plot, but this really
did not help to understand the problem you want to solve.
In the difference you want to minimize (you probably want the distance
between the points, not their displacement) UnkLine, if defined at the
beginning, is a function of BrgLines, so to optimize you will need to
adjust BrgLines.
But again, maybe I just understand what you want.
- Target Motion Analysis, Thomas D. Dean, 2016/05/01
- Re: Target Motion Analysis, Thomas D. Dean, 2016/05/01
- Re: Target Motion Analysis, Thomas D. Dean, 2016/05/02
- Re: Target Motion Analysis - Geometry Pkg, Thomas D. Dean, 2016/05/02
- Re: Target Motion Analysis - Geometry Pkg,
Juan Pablo Carbajal <=
- Re: Target Motion Analysis - Geometry Pkg, Thomas D. Dean, 2016/05/03
- Re: Target Motion Analysis - Geometry Pkg, Juan Pablo Carbajal, 2016/05/03
- Re: Target Motion Analysis - Geometry Pkg, Thomas D. Dean, 2016/05/03
- RE: Target Motion Analysis - Geometry Pkg, John Guin, 2016/05/03
- Re: Target Motion Analysis - Geometry Pkg, Thomas D. Dean, 2016/05/03
- Re: Target Motion Analysis, Thomas D. Dean, 2016/05/07
- Re: Target Motion Analysis, Thomas D. Dean, 2016/05/07
- Re: Target Motion Analysis, Juan Pablo Carbajal, 2016/05/08