フィルターのクリア

Addition of Rectangular Coordinates?

2 ビュー (過去 30 日間)
Matt Amador
Matt Amador 2017 年 11 月 9 日
回答済み: KSSV 2017 年 11 月 9 日
Hello there. I'm trying to make a function to calculate two vectors defined in rectangular coordinates, add them, and save them as rectangular coordinates as well. This is what I've made, and it isn't working to how I want it. Can anyone help out?
function [out1] = VADD(a, b, c, d, j)
[x] = a + j*b;
[y] = c + j*d;
out1 = (a+c) + j*(b+d)
disp(out1)
end

回答 (1 件)

KSSV
KSSV 2017 年 11 月 9 日
function out1 = VADD(a, b, c, d, j)
x = a + j*b;
y = c + j*d;
out1 = (a+c) + j*(b+d)
disp(out1)
end

カテゴリ

Help Center および File ExchangeComputational Geometry についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by