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

  • Context: MATLAB 
  • Thread starter Thread starter bilesh26
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary

Discussion Overview

The discussion revolves around the process of converting an analog voice signal to a digital format using MATLAB. Participants are seeking guidance on how to load an analog signal, sample it, and plot the resulting digital signal, with a focus on algorithm development prior to coding.

Discussion Character

  • Homework-related
  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant expresses urgency in needing help with a MATLAB assignment involving analog to digital conversion of a voice signal.
  • Another participant suggests starting with the theoretical approach to sampling an analog signal before considering MATLAB specifics.
  • There is a reiteration that understanding the algorithm is crucial before coding, emphasizing the need to outline steps for sampling and plotting.
  • A participant requests assistance with writing out steps in pseudo-code due to their beginner status in MATLAB and lack of familiarity with syntax.
  • One participant provides an example of pseudo-code to illustrate the concept of algorithm development before programming.

Areas of Agreement / Disagreement

Participants generally agree on the importance of developing an algorithm before coding in MATLAB. However, there is no consensus on the specific steps or methods for sampling the analog signal and plotting the digital signal, as participants express varying levels of understanding and experience.

Contextual Notes

Participants have not provided specific details on the mathematical or technical aspects of analog to digital conversion, and there are unresolved questions regarding the exact steps to implement the process in MATLAB.

Who May Find This Useful

This discussion may be useful for beginners in MATLAB who are tasked with similar assignments involving analog to digital signal processing and those interested in algorithm development for programming tasks.

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 ·
Replies
8
Views
3K
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
5
Views
3K