Free Essay

Dedicated to My All Friends

In:

Submitted By anasSabir
Words 777
Pages 4
GROUP MEMBERS: _____________ WORKSTATION NO: _________

LAB NO.

Introduction to Digital Signal Processing Fundamental Concepts Using Matlab Functions .

• Attach snap-shots in each of tasks.

• Attach snap-shots for post –task questions if necessary ,write equation or theoretical answer otherwise.

• Task H is home task.

• Attach Snapshot in each of the remaining task.

• Questions related to each task being uploaded in the meantime ,which are to be ,mentioned along each task.

CODE ANALYSIS:

SIGNAL GENERATION AND VISUALIZATION:

Task F :

Voltage Controlled Oscillation:

Another function generator is the vco (Voltage Controlled Oscillator) which generates a signal oscillating at a frequency determined by the input vector. Let's look at two examples using vco with an triangle and rectangle input.

Generate 2 seconds of a signal sampled at 10kHz whose instantaneous frequency is a triangle (respectively a rectangle) function of time:

Code :

fs = 10000;

t = 0:1/fs:2;

x1 = vco(sawtooth(2*pi*t,0.75),[0.1 0.4]*fs,fs);

x2 = vco(square(2*pi*t),[0.1 0.4]*fs,fs);

Plotting the spectrogram :

Plot the spectrograms of the generated signals:

subplot(211)

spectrogram(x1,kaiser(256,5),220,512,fs,'yaxis');

title('VCO Triangle')

subplot(212)

spectrogram(x2,256,255,256,fs,'yaxis')

title('VCO Rectangle')

hgcf = gcf;

hgcf.Color = [1,1,1];

Questions :

1. Mention the Syntax of Spectrogram Command ?

2. What does ‘Kaiser’ word in the above spectrogram ,specify?

TASK G :

To generate pulse trains, we can use the pulstran function. Below, we'll showcase two examples on how to use this function.

Rectangular Pulse Train :

Construct a train of 2 GHz rectangular pulses sampled at a rate of 100 GHz at a spacing of 7.5nS.

fs = 100E9; % sample freq

D = [2.5 10 17.5]' * 1e-9; % pulse delay times

t = 0 : 1/fs : 2500/fs; % signal evaluation time

w = 1e-9; % width of each pulse

yp = pulstran(t,D,@rectpuls,w);

Gaussian Pulse Train Generation :

Generate a periodic Gaussian pulse signal at 10 kHz, with 50% bandwidth. The pulse repetition frequency is 1 kHz, sample rate is 50 kHz, and pulse train length is 10msec. The repetition amplitude should attenuate by 0.8 each time. The example uses a function handle to refer to the generator function.

Code :

T = 0 : 1/50E3 : 10E-3;

D = [0 : 1/1E3 : 10E-3 ; 0.8.^(0:10)]';

Y = pulstran(T,D,@gauspuls,10E3,.5);

subplot(211)

plot(t*1e9,yp);

axis([0 25 -0.2 1.2]);

xlabel('Time (ns)');

ylabel('Amplitude');

title('Rectangular Train');

subplot(212)

plot(T*1e3,Y)

xlabel('Time (ms)');

ylabel('Amplitude');

title('Gaussian Pulse Train');

hgcf = gcf;

hgcf.Color = [1,1,1];

Questions :

1. Use the rectangular train code above to obtain a pulse separated by 1 micro-second ,keep all other parameters same.

2. Use the Gaussian code above to obtain a Gaussian pulse which increases by 0.8 each time and keep all other parameters un-changed.

TASK H :

Design Example :

This example shows how to estimate a speaker's fundamental frequency using the complex cepstrum. The example also estimates the fundamental frequency using a zero-crossing method and compares the results.

Load the speech signal. The recording is a woman saying "MATLAB". The sampling frequency is 7418 Hz. The following code loads the speech waveform, mtlb, and the sampling frequency, Fs, into the MATLAB® workspace.

load mtlb

Use the spectrogram to identify a voiced segment for analysis.

segmentlen = 100;

noverlap = 90;

NFFT = 128;

spectrogram(mtlb,segmentlen,noverlap,NFFT,Fs,'yaxis')

Extract the segment from 0.1 to 0.25 seconds for analysis. The extracted segment corresponds roughly to the first vowel, /ae/, in "MATLAB".

dt = 1/Fs;

I0 = round(0.1/dt);

Iend = round(0.25/dt);

x = mtlb(I0:Iend);

Obtain the complex cepstrum.

c = cceps(x);

Plot the cepstrum for times ranging from 2 to 10 ms corresponding to a frequency range of approximately 100 to 500 Hz. Identify the peak in the cepstrum and find the frequency corresponding to the peak. Use the peak as the estimate of the fundamental frequency.

t = 0:dt:length(x)*dt-dt;

plot(t(15:75).*1e3,c(15:75))

xlabel('ms')

[~,I] = max(c(15:55));

fprintf('Complex cepstrum F0 estimate is %3.2f Hz.\n', 1/(t(I+15)))

omplex cepstrum F0 estimate is 231.81 Hz.

se a zero-crossing detector on a lowpass-filtered and rectified form of the vowel to estimate the fundamental frequency.

[b0,a0]=butter(2,325/(Fs/2));

xin = abs(x);

xin = filter(b0,a0,xin);

xin = xin-mean(xin);

x2 = zeros(length(xin),1);

x2(1:length(x)-1) = xin(2:length(x));

zc=length(find((xin>0 & x2

Similar Documents

Premium Essay

Final

...Final Project Milestone Four: Final Project Southern New Hampshire University Personal Identity Statement: I was born and raised in Dalzell, South Carolina where she knew from a small age that she would be someone important, where it was in radio, writing or photography. She knew that she would have her hands in the media in some shape or form. Growing up as a child and to this day, I am dependable, loving, dedicated, goal-oriented, creative, detail-oriented, a singer, a writer, a helper, and a most importantly I am a photographer. Although I am not a professional photographer, I am dedicated and love what I do. Photography to me tells a story that no one else knew happened, even if you were there in the picture yourself. I’m a former newspaper reporter trying to work as a photographer. I worked for the Benedict College Tigers school newspaper as a news reporter and editor for two years, as an entertainment reporter. I’ve spent a lot of time perfecting my craft of photography since I graduated from Benedict College. Along with perfecting my craft, I have shot for different occasions such as weddings, birthday parties, anniversaries and engagements. I also served on the newsletter for an LGBT Greek organization, Phi Nu Kappa Sorority, Inc., for a year. While working on the Benedict College newspaper, I was able to work with other students from Prairie View University during the Historically Black Universities and College National Journalist Conference. While working with...

Words: 1812 - Pages: 8

Premium Essay

A Letter to Af Friend

...you an apology, I am totally aware of my actions and the fact that I have not been a good friend to you. I guess the past year, might have been the hardest year in my entire life! I have dedicated myself to the school – and I hope you will be proud of me. I see that my last post was last summer right before senior year! I feel awful, but maybe I could make it up to you, by writing what has happened since last summer. Let me take you back too my last year at high school! At the end of the summer holidays, I told myself that I would do whatever it takes to get the highest grades in my entire year. I know it was an exaggerated wish, but as you may know I always do my best to achieve my goals! So the day before first day of school, I renewed all of my school stuff, I just threw it right in the thrash. I got new books, dictionaries and a new cupboard, so I could organize my folders and books into the different classes! Back then my closest friends; you know who - JJ, Michael and my boyfriend Jasper, just thought I was geeky and they would make jokes about it all the time. At first I did not bother being teased by them, I know it was meant in the kindest way! School started and I was prepared! School was a battlefield and I was a samurai warrior who would destroy everything, and win the battle! I always sit at front row and raised my hand every time I had the chance! I tried to keep in touch with JJ, M and Jasper; of course Jasper was my first priority. I remember feeling he...

Words: 795 - Pages: 4

Free Essay

Bible 104

...Comparison Paragraph Prewriting Template Step 1: Comparison Paragraph Planning and Outline Directions: Complete all of the elements of the planning; otherwise, the content of your piece will not be accurate. Topics: Over the years, many colleges have offered residential and online degree programs Plan: To contrast the difference between online and residnetal learning method well engaging the different method online and residnetal student have to succeed. Attitude/Point: Online students have to be more self-efficient compared to residnetal students because online students must be motivated and dedicated to complete all required assignments with minimal enjoyment from others compared to residential students. Audience: College Students Purpose: To inform Categories of Comparison: Self-efficient, Organized, Determined Topic Sentence: Some say that online courses are more demanding and students must be self-efficient to pass compared to a resident student. Brainstorm Details: Peer Motivation, Comprehension Skills, Self-Effeienct, Student Interaction, and Professor Engagement Comparison Paragraph Outline: Topic Sentence: The fact that Liberty University tries to keep up with the changes in student population can be seen in its changes to dress code, food services, and rules. I. Online Students must be self-effeienct A. In order for an online student to succeed, they must be able to motivate themselves. B. Willing to organized a time...

Words: 1136 - Pages: 5

Premium Essay

Lovely Bones Quotes

...The Lovely Bones is a shy young girl who was creative because she like to take picture of everything.Even in the novel she says she want to be a photographer. Lastly she was respectful and kind to the adults in her life as well as to others. She only had a couple of friends. Susie was just a regular girl who wanted to do everything that a teenager would experience in his/her teen years.She dreams of becoming a photographer in the novel.Also that she has a crush on Ray.In the novel its states Susie could not move on to heaven because she wanted make sure that she had got revenged on Mr.Harvey because of what he had done to her. This shows us that Susie was a loving kind...

Words: 803 - Pages: 4

Premium Essay

St. Augustine Research Paper

...The Confessions of Saint Augustine St. Augustine main conflict was accepting God in his life. He struggle to acknowledge that God has possessed him. His father was a pagan, but his mother was such a devoted Christian woman; she dedicated her life to pray for the conversion of her son. St. Augustine was a teacher and during his youth days he encounters conflicts with Christian morality. He questioned himself many time “who am I” and “who are men?” he was a sinner and lived a very disorderly life. For example, as a child he was not baptized, he was not initiated in the Christian formation and he became afraid to sin after receiving the sacrament. This kept enriching his Manichean beliefs, he was “seduced and he seduced others, deceived and deceiving by various desires” and his doubts about encountering the truth kept increasing. He was too proud, too full of vanities, he had affairs with many women, and even had a son, but he realizes that his vision that happiness cannot be found in worldly pleasures but in the search for truth beyond the material world. “My heart was made dark by sorrow, and whatever I looked upon was death” he refers to the death of his closes friend whom he had perverted, and whose death he felt and wept bitterly. He became very desperate, confused and mad because he...

Words: 451 - Pages: 2

Premium Essay

Nurse

...learning disabilities in a hospital environment. My duties include supporting the nursing staff with all aspects of patient care, including personal care. My main responsibility is to ensure and maintain the safety of all individuals within my care. To work within a team to ensure the factory/ warehouse was clean to the highest standard. My responsibilities included being the link first aider for the team and also one of the fire marshalls. My duties of a fire marshall were to ensure weekly checks were completed in preparation for a potential emergency. To work within the community with vulnerable adults in their own home. Duties included escorting on personal outings, personal care, safe handling of finances and administration of medication. I was responsible for the care and safety of a group of individuals whom I was a key worker. To sell products on behalf of providers and meet set targets. I was a team leader for a small group within the sales team and I was responsible for motivating and supporting these individuals to reach their own targets. This post would be of ultimate benefit to me because I have always had a drive to work with and care for individuals of all ages. I have had multiple posts of within varying types of care. The most recent is as a support worker in York, this post has enabled me to work with vulnerable adults within a hospital environment and allowed me to provide support in all areas. I have also used my caring skills to work with older adults in...

Words: 1034 - Pages: 5

Premium Essay

Consumer Behaviour

...financial constraints and join tigo Ashanti some three years back. My impression before the school was obvious “come sell and go” but today, I feel there’s a company that understands my plight and has a vision in making my dream a reality. The school gave me hope and a reason to belong with the aid of building a family who are today my key customers. Basic educations of our product were amiss, coupled with a dedicated back office and a mentor but after TSS I can boldly state that my performance has appreciated due to the availability of the above. The school has really impacted my life in so many ways, today, I have my own room; I have some savings and about entering the teacher training college. Am so grateful and to sum it all, I have some dedicated friends and family to rely on. Before TSS, I was rated as an average Freelancer because the focus was to sell and move on but I’ve come to the realization that sales is not about just selling but rather educating and sensitizing the customer about the goodies of your product. This has really increased my customer base hence apt my performance. Today, am rated the number two in Ashanti North and tenth in the Country but hope to be the first in my Region and Country respectively. Honestly, I feel tigo is a great environment that accepts and rewards hard work because with the introduction of the school and some reward packages introduced by the school, I feel the sky is my limit. Looking into the future, I see myself in the main stream...

Words: 881 - Pages: 4

Free Essay

Ethics

... ACKNOWLEDGEMENT Most of all, I would like to express my gratitude to my supervisors, Mr. Abang Ekhsan Abang Othman for his guidance and great effort in assisting me throughout all the way of completion of this Final Year Project. I would like to thank him for his generosity in sharing knowledge and spending time to explain and discussed the problems that I had faced. In addition, I appreciate his guidance, advice and encouragement that facilitated the completion of this study. Also, I would like to thank my evaluators, Mr Philip Nuli Anding and Miss Agatha Lamentan Ak Muda for the Final Year Project presentation for their advices and comments which allow me to identify where the problem lies. A big thank you is also dedicated to one of the hotels in Kuching area for giving me the opportunity, permission and cooperation to conduct the study. Special thanks I dedicated to Mrs Susan Kon, manager of the hotel and Miss Nurul for her invaluable contributions and assistance throughout the distribution and collection of the questionnaires. Never forget to express my thankfulness to all the respondents from the hotel especially those who participate in this survey and provided truthful information for this research. A big appreciation to my friends and course mates who given me the strength, useful information and ideas whenever I face the problems in completing the study. Thanks to all my beloved friends. Again, I wish to dedicate my sincerely appreciation to those...

Words: 606 - Pages: 3

Premium Essay

Midwifery Personal Statement Essay

...medical professions, after Speaking to a personal friend (and midwife) as well as undergoing various experiences over the past few years I have realised that the career that excites and interests me most is midwifery. The fact that no matter how much you already know, you will still learn more definitely attracts me to this occupation. Furthermore this the idea that I would be involved in one of the most important, life changing times in people’s lives is extremely exciting and it would be amazing to be a part of. I am particularly interested in the care of premature babies and the more modern research involving the microbiome and how the different choices made surrounding a birth, both during and after, affect the babies developing microbiome and possibly their long term health. This is the subject of my EPQ. To ensure that i keep up...

Words: 638 - Pages: 3

Free Essay

The Perceptions of Effects of a Study Skills Course

...STUDENTS AT A DEDICATED ACADEMIC MAGNET HIGH SCHOOL A Dissertation Submitted to the Graduate Faculty of the Louisiana State University and Agricultural and Mechanical College in partial fulfillment of the requirements for the degree of Doctor of Philosophy in The Department of Educational Leadership, Research, and Counseling by Josephine Ann Allen B.S., Nicholls State University, 1976 M.A., Southern University, 1988 M.A., Southern University, 1990 December, 2003 DEDICATION This dissertation is dedicated to my Heavenly Father through Jesus Christ who has given me this wonderful gift and to my loving mother, Mrs. Daisy Celestin Allen, who has always believed in education and has supported me throughout my academic endeavors. ii ACKNOWLEDGEMENTS I am most appreciative to my former principal, Mr. James B. Williams, Jr., who encouraged me to complete this study and East Baton Rouge Parish for allowing me to conduct this research. I am also thankful to the participants in the study - teachers, students, parents, and administrators of Baton Rouge Magnet High School - for allowing me to conduct this research. I want to acknowledge a former student of mine, Harley Becnel, for reminding me of why I started this educational journey and why I persisted to complete the process. All children deserve to be properly educated. With love for and support of each other, teachers and students can endure challenges and the outcomes of those challenges. I am grateful to my committee...

Words: 54321 - Pages: 218

Free Essay

When Cultures Clash

...the challenges she faces as she tries to balance her cultural heritage with the western influence that she encounters in the surrounding English community. Jess must deal with the wants and restrictions of her family while trying to be a part of the western culture she is exposed to at the soccer league. I lived the past two years in Hong Kong and I watched my fellow students struggle with the same dilemma. My classmates and friends tried to blend their culture and parental expectations with their own goals and desire to adopt many elements of western society. Nowhere was this more evident than in my acedemic improvement. Chris, a close friend of mine in Hong Kong, went through a similar experience as he tried to pursue a career in acting and yet live up to the expectations of his father who wanted his son to follow him into the family business. He had to juggle the norms of his traditional Chinese parents with his own wants. I moved to Hong Kong two years ago with my family where I attend the Canadian International School. It was quite an experience. We moved into an area where many of the tycoons of China live. All the children who live there attend private school and many are enrolled in the international schools because their parents want them to become more worldly and to be ready for the global society that Asia is fast becoming. For many of the students, they are the first generation to grow up with money and western exposure at a young age. I quickly realized...

Words: 1709 - Pages: 7

Free Essay

Research Proposal Memo

...media doesn’t always help mediate between the two sides of the argument. I am addressing this memo to Parker Benson’s article acquisition editor, Robert Warner, in hopes to gain approval to pursue a piece recommending the use of body cameras on all law enforcement personnel. I will be sure to address every angle of the argument and tip-toe along sensitive boundaries. Audience Analysis: The article will not only be read by all of our loyal and dedicated readers, it will appeal to a large demographic in today’s society. Police brutality is a very hot topic in the media; therefore a piece on the recommendation of body cameras for law enforcement personnel is sure to attract a tremendous range of readers. Not only will it appeal to our dedicated readers and those who follow the media, it may appeal to those who have family or friends who are members of law enforcement, or even those who have experienced or been affected by police brutality. Research Methods: I will utilize solely secondary sources while conducting my research, due to time requirements and compliance with the Federal Government’s requirements. These sources will interpret and analyze primary sources, but be one or more steps reviewed from any events. My sources will utilize are combination of pictures, quotes or graphics of primary sources. Research will be pulled from a variety of secondary sources, including: textbooks, magazine articles, histories, criticisms, commentaries, and...

Words: 600 - Pages: 3

Premium Essay

Basketball

...ged my life dramatically; playing basketball is my favorite thing to do and brings joy to my life and family. I have never been good at the whole school thing. I am not an amazing A+ student, and didn’t have the greatest relationship with my family until something great happened. When things aren’t going right I always have basketball to motivate me In high school I was not the best student. I didn’t take it seriously, but that all stopped when I made the varsity basketball team. I didn’t want to disappoint my teammates and wanted to be eligible to play. My freshmen year I couldn’t play in two games because I had bad grades. It was the worst feeling I have ever had and from that point on I was going to do everything I could to get good grades. Basketball motivated me to work hard in school and got me through my four years in high school. I wanted to be that student athlete and not the girl that is good at basketball but cant play because of her grades. If I didn’t play basketball I would not be in college right now. I had to sacrifice a lot of things for basketball such as hanging out with friends. I made a lot of friends playing basketball and my high school team was like my second family to me. We were together all the time. We kept each other from getting into trouble and had each others back. Being so close to my teammates forced me to stop hanging out with the friends that are always getting in trouble and not making the right decisions. Playing basketball has made...

Words: 501 - Pages: 3

Free Essay

Balancing Work with Study and Family Demands

...years old and recently decided to advance my career opportunities by taking online college courses. At that time I never thought that I would find myself in the roles of a mom to a newborn baby boy, a wife of an active duty service member, and a student. At first, I found it most discouraging trying to find the time to balance college classes with all of the activities in my daily life, as being married to a soldier of the United States Army means being a single mother, currently living in a foreign country, at times of deployment. Several years have passed since I graduated high school and educational advancement was not my first priority. At that time, I had decided to join the United States Armed Forces and serve my country while stationed in Europe. Although I do not regret that decision, I do however regret not attending college directly after high school and having the option to join the service as a commissioned officer. I now decided that going back to school to obtain my Bachelor’s degree in Human Recourses Management at Penn Foster College would offer many career opportunities and set an example for my son. Taking online courses has proven to be more difficult than I thought. With my 9 week old son needing my attention most of the day, my husband working extended hours and housework piling up, I do not have the luxury to always have a set schedule allowing me to attend traditional college classes on a campus and in class rooms. My husband tries to be as supportive as he...

Words: 1129 - Pages: 5

Premium Essay

Causes of Species Endangerment

...the other is not an option. Finding the time to balance college classes with all of the activities in your daily life is what most people who are considering going back to school find most difficult and discouraging. However, with the right strategy balancing life and school can be manageable. We live in an age where women play a crucial role in the job market and in the home setting. This is no exception for me. Prior to school, my work and home life consisted of being a mother to my dogs, a wife to my partner, a leader and manager at my job, a socialite to my friends, a dedicated family member, a maid and a cook! Trying to factor in college classes seemed frightening at first! It has been ten years since I have attended any kind of educational classes; however, seeing that I regretted not attending college directly after high school, I made the decision that going back to school would open up many career opportunities for me. Deciding that I wanted to go back to school to expand my knowledge and career opportunities was the biggest decision that I have ever made thus far. Since I do not have the luxury to always have a set schedule to where I can attend traditional college classes in a classroom, I made the big decision to do distance learning as opposed to traditional college classes. In order to achieve this goal I needed to decide what my career and educational goals were, what my major would be, and what school I would attend to meet this goal. So after...

Words: 1080 - Pages: 5