SlideShare uma empresa Scribd logo
1 de 4
Experiment 1
  Aim:To generate periodic and aperiodic discrete time signalsin MATLAB and perform basic operations: folding,
         shifting, addition multiplication and scaling.
                                                                                                                                              act:1(a) original signal
                                                                                                              4
  Activity 1.
                                                                                                      3.5


  x (n) = 2- (n/3)   -5 ≤ n ≤-1                                                                               3


                                                                                                      2.5
             2          0≤n≤4




                                                                                      amplitude
                                                                                                              2
  (i) Sketch 100 samples of x (n) (ii) fold x(n) and then delay by five
                                                                                                      1.5
  samples      (iii) Delay x (n) by five samples and then fold   (iv)
  Sketch -2x (-n - 4)                                                                                         1


                                                                                                      0.5
  Program
                                                                                                              0                            act 1(b) folded and shifted
                                                                                                               -5       -4       -3       -2       -1       0        1        2       3            4
  clc;                                                                                                        4
                                                                                                                                                       time

                                                                                                      3.5
  clearall;
                                                                                                              3

  closeall;                                                                                           2.5




                                                                                      amplitude
  n1=linspace(-5,-1,50);                                                                                      2

  n2=linspace(0,4,50);
                                                                                                      1.5
  x1=2-(n1/3);
  x2=2-(n2*0);                                                                                                1

  n=[n1,n2];                                                                                          0.5
  x3=[x1,x2];
  figure('name','activity 1(a) original signal')                                                              0
                                                                                                                  1         2        3    4          5          6        7        8       9    10
  stem(n,x3,'color','green');                                                                                                                            time

  xlabel('time')                                                                                   4
                                                                                                                                              act 1(c) shift and fold


  ylabel('amplitude')
                                                                                         3.5
  title('act:1(a) original signal')
  %% activity 1(b)                                                                                 3

[x4,n4]=sigfold(x3,n);                                                                   2.5
  [x5,n5]=sigshift(x4,n4,5);
                                                                          amplitude




  figure('name','activity 1(b)')                                                                   2

  stem(n5,x5);                                                                           1.5

  xlabel('time')
                                                                                                   1
  ylabel('amplitude')
  title('act 1(b) folded and shifted')                                                   0.5

  %%activity 1 .(c)                                                                                0
  [x6,n6]=sigshift(x3,n,5);                                                                         -9
                                                                                                               0
                                                                                                                       -8       -7       -6        -5 act:1(d)
                                                                                                                                                       time
                                                                                                                                                             -4          -3   -2          -1           0

  [x7,n7]=sigfold(x6,n6);
  figure('name','activity 1 (c) shift and fold')                                                              -1


  stem(n7,x7);                                                                                                -2

  xlabel('time','color','red')
                                                                                                              -3
  ylabel('amplitude','color','red')
                                                                                                  amplitude




  title('act 1(c) shift and fold')                                                                            -4

  %% act 1(d)                                                                                                 -5
  [x8,n8]=sigfold(x3,n);
  [x9,n9]=sigshift(x8,n8,4);                                                                                  -6

  y=-(2*x9)                                                                                                   -7
  figure('name','act 1(d)')
  stem(n9,y,'color','black')                                                                                  -8
                                                                                                                   0        1        2    3          4          5        6    7       8        9
                                                                                                                                                         time
  xlabel('time','color','black')
  ylabel('amplitude','color','black')
  title('act:1(d)')

  Saurabh Raj (101098)
Activity 2.

x (n) = 2n+ sin (0.2πn)       -15 ≤ n ≤ 15

(i) Plot x (n) u (2-n)   (ii) Plot x (n-2) [-2δ (n -4) -5δ (n -5) +3δ (n -6)]        (iii) Plot even part of x (n)
(iv)Plot odd part of x (n)                                                plot of x(n)             plot of x(n)                                                                                  plot of x(n)
                                                                                            30                                                    1                                     0

1)                                                                                                                                           0.9
n=-15:15;                                                                                   20                                                                                          -5
                                                                                                                                             0.8
x=2*n+sin(0.2*pi*n);
[n1,x1]=unitstep(0,-15,15);                                                                                                                  0.7
                                                                                            10                                                                                         -10
[x2,n2]=sigfold(x1,n1);
                                                                                                                                             0.6
[x3,n3]=sigshift(x2,n2,2);




                                                                                amplitude




                                                                                                                                 amplitude




                                                                                                                                                                        amplitude
y=x.*x3;                                                                                     0                                               0.5                                       -15
subplot(1,3,1),stem(n,x)
                                                                                                                                             0.4
title('plot of x(n)')
                                                                                            -10                                                                                        -20
xlabel('time')                                                                                                                               0.3
ylabel('amplitude')
                                                                                                                                             0.2
subplot(1,3,2),stem(n3,x3,'color','green')                                                  -20                                                                                        -25
title('plot of x(n)')                                                                                                                        0.1
xlabel('time')
ylabel('amplitude')                                                                         -30
                                                                                              -20          0         20
                                                                                                                                                  0
                                                                                                                                                  -20      0       20
                                                                                                                                                                                       -30
                                                                                                                                                                                         -20          0         20
subplot(1,3,3),stem(n3,y,'color','green')                                                                time                                            time                                       time
title('plot of x(n)')
xlabel('time')
ylabel('amplitude')
                                                                           plot of impulse signal                                                plot of shifted x(n)                              plot of y(n)
2)                                                                         3                                                         30                                                      0
[na,ya]=impulse(4,-15,15)
                                                                                                                                                                                         -5
[nb,yb]=impulse(5,-15,15)                                                  2
[nc,yc]=impulse(-6,-15,15)                                                                                                           20
                                                                                                                                                                                        -10
n6=na+nb+nc                                                                1
y=(-2*ya)+(-5*yb)+(3*yc)                                                                                                                                                                -15
                                                                                                                                     10
                                                                           0
n=-15:15                                                                                                                                                                                -20
                                                               amplitude




                                                                                                                     amplitude




x=2*n+sin(0.2*pi*n)                                                                                                                                                        amplitude
[x1,n1]=sigshift(x,n,2);                                                   -1                                                                0                                          -25
y1=y.*x1;
                                                                                                                                                                                        -30
subplot(1,3,1),stem(n6,y)                                                  -2
xlabel('time')                                                                                                                   -10
                                                                                                                                                                                        -35
ylabel('amplitude')                                                        -3
title('plot of impulse signal')                                                                                                                                                         -40
subplot(1,3,2),stem(n1,x1)                                                                                                       -20
                                                                           -4
xlabel('time')                                                                                                                                                                          -45
ylabel('amplitude')
title('plot of shifted x(n)')                                              -5                                                    -30                                                    -50
                                                                            -50                     0           50                 -20                    0        20                     -20            0           20
subplot(1,3,3),stem(n1,y1)                                                                        time                                                  time                                           time
xlabel('time')
ylabel('amplitude')
title('plot of y(n)')




Saurabh Raj (101098)
(iii)
n=-15:15;
x=2*n+sin(0.2*pi*n);                                   plot of x(n)                             plot of folded x(n)                       plot of x(n)+x(-n) plot of even part of x(n)
                                                     30                                          30                                         1                     1
[x1,n1]=sigfold(x,n);
[x2,n2]=sigadd(x1,n1,x,n);                                                                                                               0.8                                      0.8
y=x2/2;
                                                     20                                             20
subplot(1,4,1),stem(n,x)                                                                                                                 0.6                                      0.6
title('plot of x(n)')
xlabel('time')                                       10                                             10
                                                                                                                                         0.4                                      0.4
ylabel('amplitude')
                                                                                                                                         0.2                                      0.2
subplot(1,4,2),stem(n1,x1)




                                     amplitude




                                                                                amplitude




                                                                                                                         amplitude




                                                                                                                                                                  amplitude
title('plot of folded x(n)')                             0                                              0                                        0                                        0
xlabel('time')
ylabel('amplitude')                                                                                                                   -0.2                                     -0.2
subplot(1,4,3),stem(n2,x2)                        -10                                            -10
                                                                                                                                      -0.4                                     -0.4
title('plot of x(n)+x(-n)')
xlabel('time')                                                                                                                        -0.6                                     -0.6
ylabel('amplitude')                               -20                                            -20
subplot(1,4,4),stem(n2,y)                                                                                                             -0.8                                     -0.8
title('plot of even part of x(n)')
xlabel('time')                                    -30
                                                    -20            0 20
                                                                                                 -30
                                                                                                   -20            0 20
                                                                                                                                                 -1
                                                                                                                                                  -20      0 20
                                                                                                                                                                                          -1
                                                                                                                                                                                           -20      0 20
ylabel('amplitude')                                              time                                           time                                     time                                     time



                                                                 plot of x(n)                           plot of folded x(n)                       plot of x(n)+x(-n) plot of even part of x(n)
(iv)                                                     30                                             30                                        60                     30

n=-15:15;
x=2*n+sin(0.2*pi*n);                                     20                                             20                                        40                                       20
[x1,n1]=sigfold(x,n);
[x2,n2]=sigadd(-1*x1,n1,x,n);
y=x2/2;
                                                         10                                             10                                        20                                       10
subplot(1,4,1),stem(n,x)
title('plot of x(n)')
                                             amplitude




                                                                                            amplitude




                                                                                                                                     amplitude




                                                                                                                                                                              amplitude
xlabel('time')
ylabel('amplitude')                                          0                                              0                                        0                                        0
subplot(1,4,2),stem(n1,x1)
title('plot of folded x(n)')
xlabel('time')                                           -10                                            -10                                       -20                                      -10
ylabel('amplitude')
subplot(1,4,3),stem(n2,x2)
title('plot of x(n)+x(-n)')                              -20                                            -20                                       -40                                      -20
xlabel('time')
ylabel('amplitude')
subplot(1,4,4),stem(n2,y)
title('plot of even part of x(n)')                       -30                                            -30                                       -60                                      -30
                                                           -20        0 20                                -20      0 20                             -20     0 20                             -20     0 20
xlabel('time')                                                      time                                         time                                     time                                     time
ylabel('amplitude')




Saurabh Raj (101098)
Activity 3.

x (n) = [2 -3 4 -1 5 3 0 -2 6]

                                 ↑

(i)Plot x (n)             (ii)Plotx (-n)(iii)Ploteven part ofx (n)(iv)Plotodd part ofx (n)
clc
clearall
closeall
n=-4:4;
x=[2 -3 4 -1 5 3 0 -2 6]
subplot(2,2,1),stem(n,x,'color','red');
xlabel('n--->','color','red')
ylabel('amplitude','color','red')
title('activity 3a','color','red')
[x1,n1]=sigfold(x,n);
subplot(2,2,2),stem(n1,x1,'color','green');
xlabel('n-->','color','green')
ylabel('amplitude','color','green')
title('activity 3b','color','green')
 [x2,n2]=sigadd(x,n,x1,n1);
y1=x2/2;
subplot(2,2,3),stem(n2,y1,'color','red');
xlabel('n->','color','red')
ylabel('amplitude','color','red')
title('even part of x[n]','color','red')
x3=-x1;
[x4,n4]=sigadd(x,n,x3,n1);
y2=x4/2;
subplot(2,2,4),stem(n4,y2);
xlabel(' ...n...')
ylabel('---x[n]--->')
title('odd part of x[n]')

                                     activity 3a                                              activity 3b
                   10                                                             10


                   5                                                              5
     amplitude




                                                                  amplitude




                   0                                                              0


                   -5                                                             -5
                     -4        -2       0         2          4                      -4   -2      0         2    4
                                      n--->                                                    n-->
                                 even part of x[n]                                        odd part of x[n]
                   5                                                              2

                                                                                  1
       amplitude




                                                                    ---x[n]--->




                   0                                                              0

                                                                                  -1

                   -5                                                             -2
                     -4        -2        0         2         4                      -4   -2         0       2   4
                                        n->                                                      ...n...




Saurabh Raj (101098)

Mais conteúdo relacionado

Mais procurados

CS 354 Surfaces, Programmable Tessellation, and NPR Graphics
CS 354 Surfaces, Programmable Tessellation, and NPR GraphicsCS 354 Surfaces, Programmable Tessellation, and NPR Graphics
CS 354 Surfaces, Programmable Tessellation, and NPR GraphicsMark Kilgard
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration StructuresMark Kilgard
 
Pf congres20110917 data-structures
Pf congres20110917 data-structuresPf congres20110917 data-structures
Pf congres20110917 data-structuresnorm2782
 
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIATypes Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIADheeraj Kataria
 
(Www.entrance exam.net)-ignou mca solved assignment 2011
(Www.entrance exam.net)-ignou mca  solved assignment 2011(Www.entrance exam.net)-ignou mca  solved assignment 2011
(Www.entrance exam.net)-ignou mca solved assignment 2011swatith
 
User defined functions
User defined functionsUser defined functions
User defined functionsshubham_jangid
 
Lesson 26: The Fundamental Theorem of Calculus (handout)
Lesson 26: The Fundamental Theorem of Calculus (handout)Lesson 26: The Fundamental Theorem of Calculus (handout)
Lesson 26: The Fundamental Theorem of Calculus (handout)Matthew Leingang
 
CS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingCS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingMark Kilgard
 
Model Slicing
Model SlicingModel Slicing
Model SlicingClarkTony
 
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilersComputer Science Club
 
Functional Concepts for OOP Developers
Functional Concepts for OOP DevelopersFunctional Concepts for OOP Developers
Functional Concepts for OOP Developersbrweber2
 

Mais procurados (20)

Rsa encryption
Rsa encryptionRsa encryption
Rsa encryption
 
CS 354 Surfaces, Programmable Tessellation, and NPR Graphics
CS 354 Surfaces, Programmable Tessellation, and NPR GraphicsCS 354 Surfaces, Programmable Tessellation, and NPR Graphics
CS 354 Surfaces, Programmable Tessellation, and NPR Graphics
 
Lecture04
Lecture04Lecture04
Lecture04
 
9 cm604.12
9 cm604.129 cm604.12
9 cm604.12
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration Structures
 
Pf congres20110917 data-structures
Pf congres20110917 data-structuresPf congres20110917 data-structures
Pf congres20110917 data-structures
 
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIATypes Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
 
(Www.entrance exam.net)-ignou mca solved assignment 2011
(Www.entrance exam.net)-ignou mca  solved assignment 2011(Www.entrance exam.net)-ignou mca  solved assignment 2011
(Www.entrance exam.net)-ignou mca solved assignment 2011
 
User defined functions
User defined functionsUser defined functions
User defined functions
 
Lesson 26: The Fundamental Theorem of Calculus (handout)
Lesson 26: The Fundamental Theorem of Calculus (handout)Lesson 26: The Fundamental Theorem of Calculus (handout)
Lesson 26: The Fundamental Theorem of Calculus (handout)
 
Advanced JavaScript
Advanced JavaScript Advanced JavaScript
Advanced JavaScript
 
CS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingCS 354 Ray Casting & Tracing
CS 354 Ray Casting & Tracing
 
SA09 Realtime education
SA09 Realtime educationSA09 Realtime education
SA09 Realtime education
 
Skyline queries
Skyline queriesSkyline queries
Skyline queries
 
Model Slicing
Model SlicingModel Slicing
Model Slicing
 
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers
 
04slide
04slide04slide
04slide
 
Functional Concepts for OOP Developers
Functional Concepts for OOP DevelopersFunctional Concepts for OOP Developers
Functional Concepts for OOP Developers
 
Functions123
Functions123 Functions123
Functions123
 
Functions12
Functions12Functions12
Functions12
 

Semelhante a Exp 1 (raghu)

Day 1 intro to functions
Day 1 intro to functionsDay 1 intro to functions
Day 1 intro to functionsErik Tjersland
 
Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Sourjya Dutta
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxMUMAR57
 
Day 2 graphing linear equations
Day 2 graphing linear equationsDay 2 graphing linear equations
Day 2 graphing linear equationsErik Tjersland
 
Day 3 graphing linear equations
Day 3 graphing linear equationsDay 3 graphing linear equations
Day 3 graphing linear equationsErik Tjersland
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)asghar123456
 

Semelhante a Exp 1 (raghu) (6)

Day 1 intro to functions
Day 1 intro to functionsDay 1 intro to functions
Day 1 intro to functions
 
Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docx
 
Day 2 graphing linear equations
Day 2 graphing linear equationsDay 2 graphing linear equations
Day 2 graphing linear equations
 
Day 3 graphing linear equations
Day 3 graphing linear equationsDay 3 graphing linear equations
Day 3 graphing linear equations
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)
 

Último

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Último (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Exp 1 (raghu)

  • 1. Experiment 1 Aim:To generate periodic and aperiodic discrete time signalsin MATLAB and perform basic operations: folding, shifting, addition multiplication and scaling. act:1(a) original signal 4 Activity 1. 3.5 x (n) = 2- (n/3) -5 ≤ n ≤-1 3 2.5 2 0≤n≤4 amplitude 2 (i) Sketch 100 samples of x (n) (ii) fold x(n) and then delay by five 1.5 samples (iii) Delay x (n) by five samples and then fold (iv) Sketch -2x (-n - 4) 1 0.5 Program 0 act 1(b) folded and shifted -5 -4 -3 -2 -1 0 1 2 3 4 clc; 4 time 3.5 clearall; 3 closeall; 2.5 amplitude n1=linspace(-5,-1,50); 2 n2=linspace(0,4,50); 1.5 x1=2-(n1/3); x2=2-(n2*0); 1 n=[n1,n2]; 0.5 x3=[x1,x2]; figure('name','activity 1(a) original signal') 0 1 2 3 4 5 6 7 8 9 10 stem(n,x3,'color','green'); time xlabel('time') 4 act 1(c) shift and fold ylabel('amplitude') 3.5 title('act:1(a) original signal') %% activity 1(b) 3 [x4,n4]=sigfold(x3,n); 2.5 [x5,n5]=sigshift(x4,n4,5); amplitude figure('name','activity 1(b)') 2 stem(n5,x5); 1.5 xlabel('time') 1 ylabel('amplitude') title('act 1(b) folded and shifted') 0.5 %%activity 1 .(c) 0 [x6,n6]=sigshift(x3,n,5); -9 0 -8 -7 -6 -5 act:1(d) time -4 -3 -2 -1 0 [x7,n7]=sigfold(x6,n6); figure('name','activity 1 (c) shift and fold') -1 stem(n7,x7); -2 xlabel('time','color','red') -3 ylabel('amplitude','color','red') amplitude title('act 1(c) shift and fold') -4 %% act 1(d) -5 [x8,n8]=sigfold(x3,n); [x9,n9]=sigshift(x8,n8,4); -6 y=-(2*x9) -7 figure('name','act 1(d)') stem(n9,y,'color','black') -8 0 1 2 3 4 5 6 7 8 9 time xlabel('time','color','black') ylabel('amplitude','color','black') title('act:1(d)') Saurabh Raj (101098)
  • 2. Activity 2. x (n) = 2n+ sin (0.2πn) -15 ≤ n ≤ 15 (i) Plot x (n) u (2-n) (ii) Plot x (n-2) [-2δ (n -4) -5δ (n -5) +3δ (n -6)] (iii) Plot even part of x (n) (iv)Plot odd part of x (n) plot of x(n) plot of x(n) plot of x(n) 30 1 0 1) 0.9 n=-15:15; 20 -5 0.8 x=2*n+sin(0.2*pi*n); [n1,x1]=unitstep(0,-15,15); 0.7 10 -10 [x2,n2]=sigfold(x1,n1); 0.6 [x3,n3]=sigshift(x2,n2,2); amplitude amplitude amplitude y=x.*x3; 0 0.5 -15 subplot(1,3,1),stem(n,x) 0.4 title('plot of x(n)') -10 -20 xlabel('time') 0.3 ylabel('amplitude') 0.2 subplot(1,3,2),stem(n3,x3,'color','green') -20 -25 title('plot of x(n)') 0.1 xlabel('time') ylabel('amplitude') -30 -20 0 20 0 -20 0 20 -30 -20 0 20 subplot(1,3,3),stem(n3,y,'color','green') time time time title('plot of x(n)') xlabel('time') ylabel('amplitude') plot of impulse signal plot of shifted x(n) plot of y(n) 2) 3 30 0 [na,ya]=impulse(4,-15,15) -5 [nb,yb]=impulse(5,-15,15) 2 [nc,yc]=impulse(-6,-15,15) 20 -10 n6=na+nb+nc 1 y=(-2*ya)+(-5*yb)+(3*yc) -15 10 0 n=-15:15 -20 amplitude amplitude x=2*n+sin(0.2*pi*n) amplitude [x1,n1]=sigshift(x,n,2); -1 0 -25 y1=y.*x1; -30 subplot(1,3,1),stem(n6,y) -2 xlabel('time') -10 -35 ylabel('amplitude') -3 title('plot of impulse signal') -40 subplot(1,3,2),stem(n1,x1) -20 -4 xlabel('time') -45 ylabel('amplitude') title('plot of shifted x(n)') -5 -30 -50 -50 0 50 -20 0 20 -20 0 20 subplot(1,3,3),stem(n1,y1) time time time xlabel('time') ylabel('amplitude') title('plot of y(n)') Saurabh Raj (101098)
  • 3. (iii) n=-15:15; x=2*n+sin(0.2*pi*n); plot of x(n) plot of folded x(n) plot of x(n)+x(-n) plot of even part of x(n) 30 30 1 1 [x1,n1]=sigfold(x,n); [x2,n2]=sigadd(x1,n1,x,n); 0.8 0.8 y=x2/2; 20 20 subplot(1,4,1),stem(n,x) 0.6 0.6 title('plot of x(n)') xlabel('time') 10 10 0.4 0.4 ylabel('amplitude') 0.2 0.2 subplot(1,4,2),stem(n1,x1) amplitude amplitude amplitude amplitude title('plot of folded x(n)') 0 0 0 0 xlabel('time') ylabel('amplitude') -0.2 -0.2 subplot(1,4,3),stem(n2,x2) -10 -10 -0.4 -0.4 title('plot of x(n)+x(-n)') xlabel('time') -0.6 -0.6 ylabel('amplitude') -20 -20 subplot(1,4,4),stem(n2,y) -0.8 -0.8 title('plot of even part of x(n)') xlabel('time') -30 -20 0 20 -30 -20 0 20 -1 -20 0 20 -1 -20 0 20 ylabel('amplitude') time time time time plot of x(n) plot of folded x(n) plot of x(n)+x(-n) plot of even part of x(n) (iv) 30 30 60 30 n=-15:15; x=2*n+sin(0.2*pi*n); 20 20 40 20 [x1,n1]=sigfold(x,n); [x2,n2]=sigadd(-1*x1,n1,x,n); y=x2/2; 10 10 20 10 subplot(1,4,1),stem(n,x) title('plot of x(n)') amplitude amplitude amplitude amplitude xlabel('time') ylabel('amplitude') 0 0 0 0 subplot(1,4,2),stem(n1,x1) title('plot of folded x(n)') xlabel('time') -10 -10 -20 -10 ylabel('amplitude') subplot(1,4,3),stem(n2,x2) title('plot of x(n)+x(-n)') -20 -20 -40 -20 xlabel('time') ylabel('amplitude') subplot(1,4,4),stem(n2,y) title('plot of even part of x(n)') -30 -30 -60 -30 -20 0 20 -20 0 20 -20 0 20 -20 0 20 xlabel('time') time time time time ylabel('amplitude') Saurabh Raj (101098)
  • 4. Activity 3. x (n) = [2 -3 4 -1 5 3 0 -2 6] ↑ (i)Plot x (n) (ii)Plotx (-n)(iii)Ploteven part ofx (n)(iv)Plotodd part ofx (n) clc clearall closeall n=-4:4; x=[2 -3 4 -1 5 3 0 -2 6] subplot(2,2,1),stem(n,x,'color','red'); xlabel('n--->','color','red') ylabel('amplitude','color','red') title('activity 3a','color','red') [x1,n1]=sigfold(x,n); subplot(2,2,2),stem(n1,x1,'color','green'); xlabel('n-->','color','green') ylabel('amplitude','color','green') title('activity 3b','color','green') [x2,n2]=sigadd(x,n,x1,n1); y1=x2/2; subplot(2,2,3),stem(n2,y1,'color','red'); xlabel('n->','color','red') ylabel('amplitude','color','red') title('even part of x[n]','color','red') x3=-x1; [x4,n4]=sigadd(x,n,x3,n1); y2=x4/2; subplot(2,2,4),stem(n4,y2); xlabel(' ...n...') ylabel('---x[n]--->') title('odd part of x[n]') activity 3a activity 3b 10 10 5 5 amplitude amplitude 0 0 -5 -5 -4 -2 0 2 4 -4 -2 0 2 4 n---> n--> even part of x[n] odd part of x[n] 5 2 1 amplitude ---x[n]---> 0 0 -1 -5 -2 -4 -2 0 2 4 -4 -2 0 2 4 n-> ...n... Saurabh Raj (101098)