필터 지우기
필터 지우기

How to invert a sample?

조회 수: 4 (최근 30일)
ramya
ramya 2011년 3월 3일
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
Sean de Wolski
Sean de Wolski 2011년 3월 3일
Whoever tagged "iddon'treaddocumentation', love it!
Paulo Silva
Paulo Silva 2011년 3월 3일
I know that person, he's crazy!

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

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 3월 3일
doc fliplr
doc flipud
  댓글 수: 5
Paulo Silva
Paulo Silva 2011년 3월 3일
please read matlab's documentation and don't expect others to give you the complete code.
ramya
ramya 2011년 3월 3일
Thank u for ur valuable suggestions.........

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

추가 답변 (2개)

Paulo Silva
Paulo Silva 2011년 3월 3일
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
ramya
ramya 2011년 3월 3일
sean what the statement u have given is working thank uuu and it made my work easier...thank uuuuuu
ramya
ramya 2011년 3월 3일
yes Sean's answer is correct and it made my work more easier.....

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


Kandhavel A
Kandhavel A 2011년 3월 3일
use can use selector switches which works based on index we provide
  댓글 수: 1
ramya
ramya 2011년 3월 3일
how can i implement inversion for samples by using matlab....

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by