How to invert a sample?

10 Ansichten (letzte 30 Tage)
ramya
ramya am 3 Mär. 2011
I'm doing a project related to DSP. I have a doubt regarding sampling. My project is about inverting the samples of an audio signal. My doubt is how to invert samples by using MATLAB. For example if we take 16 samples the 0th sample should be 15th and the 15th sample should be 0th one. Can you please help me implement this in MATLAB.
  5 Kommentare
Sean de Wolski
Sean de Wolski am 3 Mär. 2011
Whoever tagged "iddon'treaddocumentation', love it!
Paulo Silva
Paulo Silva am 3 Mär. 2011
I know that person, he's crazy!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 3 Mär. 2011
doc fliplr
doc flipud
  5 Kommentare
Paulo Silva
Paulo Silva am 3 Mär. 2011
please read matlab's documentation and don't expect others to give you the complete code.
ramya
ramya am 3 Mär. 2011
Thank u for ur valuable suggestions.........

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Paulo Silva
Paulo Silva am 3 Mär. 2011
Ok here's my worst code to do that for you
Sample=[3 4 5 7 9 8 4 3 5 6 7]
OutSample=[];
for lo=numel(Sample):-1:1
OutSample=[OutSample Sample(lo)];
pause(1) %the loop is too fast, lets slow it down
end
OutSample
  6 Kommentare
ramya
ramya am 3 Mär. 2011
sean what the statement u have given is working thank uuu and it made my work easier...thank uuuuuu
ramya
ramya am 3 Mär. 2011
yes Sean's answer is correct and it made my work more easier.....

Melden Sie sich an, um zu kommentieren.


Kandhavel A
Kandhavel A am 3 Mär. 2011
use can use selector switches which works based on index we provide
  1 Kommentar
ramya
ramya am 3 Mär. 2011
how can i implement inversion for samples by using matlab....

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by