MATLAB How to Convert an Analog Voice Signal to Digital in MATLAB?

  • Thread starter Thread starter bilesh26
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion revolves around a beginner seeking help with a MATLAB assignment involving the loading, sampling, and plotting of an analog voice signal. The user expresses frustration with not knowing how to perform these tasks in MATLAB, emphasizing the urgency due to a tight deadline. Respondents stress the importance of understanding the algorithm behind analog-to-digital conversion before diving into coding. They suggest outlining the steps in pseudo-code to clarify the process, which can then be translated into MATLAB syntax. The conversation highlights the need for a structured approach to problem-solving in programming, advocating for defining objectives, creating algorithms, and then writing the code.
bilesh26
Messages
4
Reaction score
0
guys I am new to here and new to matlab
i have assignment to do in matlab.
what i have to do is load a analog signal(voice) and sample it and then plot the digital signal.
i can't find a way to do that
pleasezz help me i have only 2days for this..!
 
Physics news on Phys.org
Okay well let's start out forgetting about MatLab for a second.

How would you go about sampling an analog signal to make a digital signal out of it?
 
dear friend i can't forget MATLAB because lecture wants it in mat lab!
sorry actually i dnt know how to do it!
 
bilesh26 said:
dear friend i can't forget MATLAB because lecture wants it in mat lab!
sorry actually i dnt know how to do it!

That's not the idea. Before you can program the code in any language you have to have an algorithm in mind.

So before you even think of how to code in Matlab how would you implement the analog to digital conversion?
 
Feldoh said:
That's not the idea. Before you can program the code in any language you have to have an algorithm in mind.

So before you even think of how to code in Matlab how would you implement the analog to digital conversion?

aah yeah first i want to sample the analog signal then gave to plot digtal signal from that samples...
thats the thing i want to do...
 
So write out the steps would would do to sample the analog signal and then plot the digital sample
 
Feldoh said:
So write out the steps would would do to sample the analog signal and then plot the digital sample
thats the thing which i cant! beacuse I am a biginner to MATLAB and i dnt know sintax for them!
can you help me pleasezz if you dnt mind
 
bilesh26 said:
thats the thing which i cant! beacuse I am a biginner to MATLAB and i dnt know sintax for them!
can you help me pleasezz if you dnt mind

Write out the steps in pseudo-code. You can translate the pseudo-code into a specific programming language later.

For example if I wanted to sum the numbers 1 through 100 I might write it out in pseudo-code as:

----------------------------------------

set a variable sum = 0
set i = 1

while i < 100 repeat the following:
{
sum = sum + i
i = i +1
}

output sum

----------------------------------------

Obviously that code I wrote is not syntactically correct for any programming language, however it's still easy to understand what my algorithm is for calculating the sum of the number 1 thru 100.

It's, in general, good practice to come up with an algorithm BEFORE you write the code in a specific programming language. As with all types of problems it's best to solve one part of a problem at a time. That way it doesn't seem overwhelming.

In the case of programming you want to state an overall objective. THEN create an algorithm to solve that problem. THEN write the code in a specific language.
 

Similar threads

Replies
8
Views
2K
Replies
4
Views
4K
Replies
9
Views
5K
Replies
10
Views
3K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
32
Views
4K
Replies
5
Views
3K
Back
Top