How can I reflect a signal on Y-Axis?
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahmed Mahmoud
le 26 Mai 2020
Réponse apportée : Mohammad Sami
le 26 Mai 2020
I would like to know how to reflect any signal only on the Y-Axis
3 commentaires
Adam Danz
le 26 Mai 2020
@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.
Réponse acceptée
Mohammad Sami
le 26 Mai 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spectral Measurements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!