Noise creation with direction

조회 수: 1 (최근 30일)
kyin gab
kyin gab 2013년 6월 7일
Hello, I am trying to create a one second noise in direction (az = 60 deg, el = 0 deg).
I want to create it in time and frequecy domain.
How do I go about it?
Thanks
  댓글 수: 3
Image Analyst
Image Analyst 2013년 6월 8일
Can you just go to your window, open it, circle your hands around your mouth, and start shouting towards the sky? http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Walter Roberson
Walter Roberson 2013년 6월 8일
That would create it in the time domain. I don't know what it means to create a timed noise in the frequency domain.

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

채택된 답변

Image Analyst
Image Analyst 2013년 6월 10일
You can do
row6 = your2DMatrix(6, :);
The 6 as the first argument means to take row 6. The : as the second index means "all columns". So together it means take "all columns in row 6" and put into a 1D row vector called row6.

추가 답변 (1개)

kyin gab
kyin gab 2013년 6월 10일
Image Analyst and Walter Roberson thanks for the jokes.
I have created the 'noise' I was talking about. I wanted to use the rand function to create it. figured it out by reading from MatLab.
this is what I did (will try to explain for those that will be learning for the first time)
fs = 44100; %sampling frequency
t = 0:1/fs:1-1/fs; %i want it to last for one sec
%i want the noise to have +1(a) as highest and negative -1(b) as lowest amplitudes respectively % to do that set the terms before '.*' to a + (b - a)
noise = 1 + (-1-(1)).* rand(size(t)); % this will produce 1 sec noise signal.
Ok I have done that. I have another problem I am facing. I have a vector of 8 X 1024 double.
I want to select one row ie the 6th and all its content (1024) and assign it to a variable. How do I do that?
Thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 6월 10일
What jokes? And where does the azimuth 60 come into your calculation?

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

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by