[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Difficulty with createLine
From: |
Thomas D. Dean |
Subject: |
Difficulty with createLine |
Date: |
Thu, 2 Jun 2016 13:41:23 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
I have two scripts that create lines, using the same data, but different
calls and I get different lines when I think I should be getting the
same line.
The first set of data comes from a complicated calculation.
octave:1027> relTgtPosit
relTgtPosit =
95.0000 16.0000
80.2279 -3.8953
65.4558 -23.7906
53.4611 -31.3488
29.4717 -46.4653
5.4823 -61.5818
relTgtLeg =
createLine([relTgtPosit(1,:),relTgtPosit(3,:);relTgtPosit(3,:),relTgtPosit(6,:)])
The second set of data comes from direct assignment
T1 = [95.0000 16.0000]
T2 = [80.2279 -3.8953]
T3 = [65.4558 -23.7906]
lineT = createLine(T1,T3);
figure; hold on; axis([0 120 -80 20]);
grid
drawLine(relTgtLeg(1,:), 'color', 'b')
drawLine(lineT, 'color', 'c')
hold off
I think the two lines, relTgtLeg(1,:) and lineT should be the same.
What am I doing wrong?
Tom Dean
- Difficulty with createLine,
Thomas D. Dean <=