Montag, 18. März 2013

Day 1

Day 1 - Getting started

Done:

  • Get used to the Matlab desktop including the different windows and the editor
  •  Programmed little scripts including most common functions e.g. plot(), figure() or stemp()

Typical plot() function 



stemp() function


  • Implementing a for-loop code example:
% 3 Figures 
%
% DSP Problem solving with Matlab
% Day 1. Excercise 10
% Daniel Ditzel
% 18.03.2013


n=0:1:255;

%Creates 3 Figures in a loop 
for k = 1:3
    v = n*k;
    figure(k);
    grid on;
    title('splitted windows');
    xlabel('Index');
    ylabel('Amplitude');
    plot(n,v); 
end

  • Solved the first excercise and made a nice summary with the teammembers including a lot of pictures and code examples.
 Link: https://docs.google.com/document/d/1z7STKKl4QVQ8Lvkxyb2A2h1K5BmjLkdt9VpoBAqRnvc/edit?usp=sharing


  • Workload :  6 hours

Learned:

  • using matrices and/or vectors
  • creating a working Matlab script
  • how to use Matlab in simple applications 
  • formatting plots and (simple) graphical outputs
  • used the first simple DSP-functions
  • for loop and if/else commands
  • getting used to the abs-function in Matlab

  •  working as a team on an report simultaneously

To Do (next):

  • implement imaginary numbers in functions
  • Solution for Q14 + Q15
  • understanding the attributes of filters like fir1(x,y,z) (just able to use them by now)
 code-example i've been using in the teamblog:
FIR- Filter (Code below)
b = fir1(80,0.5,kaiser(81,8));
hd = dfilt.dffir(b);

  • understand the linking between Filters and DSP-functions (just able to use them by now)
e.g.: impz(hd)
Impulse response of the Filter above



Keine Kommentare:

Kommentar veröffentlichen