Command to calculate the coordinates of points

4 ビュー (過去 30 日間)
Max
Max 2012 年 11 月 27 日
Hi, I calculating the coordinates of the points in this way:
P1 = [X (1), (- A (1) - Y (1))];
P2 = [X (2), (- A (2) - Y (2))];
P3 = [X (3), (- A (3) - Y (3))];
P4 = [X (4), (- A (4) - Y (4))];
P5 = [X (5), (- A (5) - Y (5))];
P6 = [X (6), (- A (6) - Y (6))];
P7 = [X (7), (- A (7) - Y (7))];
where X, Y and A are column-vectors
How can I calculate the coordinates of the points with a single command? thanks so much
Max

採用された回答

Pedro Villena
Pedro Villena 2012 年 11 月 27 日
P = [X (-A-Y)];
P1 = P(1,:)
P2 = P(2,:)
...

その他の回答 (1 件)

Max
Max 2012 年 11 月 27 日
Thanks, exactly this:
P = [X (-A-Y)];
;)

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by