How it is possible to sum these two matrix as a vector?
이전 댓글 표시
Hi guys.
I'd like to write summation these two matrix as two vectors that defined as C1 And C2 .For writing a program for it in the matter, I need some help, what must I do?

댓글 수: 2
Lukas Bystricky
2015년 8월 14일
What exactly are you trying to do? My guess is that given i and j, you want to calculate C1 and C2, it that right?
Habib
2015년 8월 14일
채택된 답변
추가 답변 (1개)
Bjorn Gustavsson
2015년 8월 14일
Since you have hats on i and j I assume they are column vectors, then your function might very well look something like this
function [C1,C2] = add_transformedvectors(i,j,A,B)
% Fill in help comments
% If ambitious fill in additional argument checks and such
C1 = A*i + B*j;
C2 = B*i - A*j;
HTH
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!