How can I reflect a signal on Y-Axis?

조회 수: 19 (최근 30일)
Ahmed Mahmoud
Ahmed Mahmoud 2020년 5월 26일
답변: Mohammad Sami 2020년 5월 26일
I would like to know how to reflect any signal only on the Y-Axis
  댓글 수: 3
Ahmed Mahmoud
Ahmed Mahmoud 2020년 5월 26일
What if my input that I want to reflect is not 2x2 matrix?
Adam Danz
Adam Danz 2020년 5월 26일
@Ahmed Mahmoud , the example in the link that Mohammad shared shows data that are not in a 2x2 matrix. Take some time to study the example. You'll see a 2x5 matrix containg 5 [X;Y] coordinates.
@Mohammad Sami, consider copying your comment to the answers section so you get credit for a good answer.

댓글을 달려면 로그인하십시오.

채택된 답변

Mohammad Sami
Mohammad Sami 2020년 5월 26일
You can multiply the reflection matrix with 2xn matrix of x,y coordinates.
x = [0 1 2 3 4 5];
y = [0 1 2 3 4 5];
reflectionmatrix = [-1 0; 0 1];
rm = reflectionmatrix * [x;y];
rx = rm(1,:);
ry = rm(2,:);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by