% 2 x 11 -Matrix F: Spalten sind Punkte, welche den Buchstaben "F" bilden F=[0 0 3 3 1 1 2 2 1 1 0 0 5 5 4 4 3 3 2 2 0 0];
function myplot(A) % Zeichnet die Spalten einer 2 x n -Matrix als Punkte und verbindet sie m = max(max(abs(A)))*1.2+1; plot(A(1,:),A(2,:),'b', [-m m],[0 0],'k:', [0 0],[-m m],'k:') axis([-m m -m m])
>> buchstabe >> myplot(F) >> phi = 45/180*pi; % 45 Grad im Gegenuhrzeigersinn >> A = [cos(phi) -sin(phi); sin(phi) cos(phi)] % Rotationsmatrix >> myplot(A*F)
spektrum(x, fs): Zeichnet das Amplitudenspektrum des Signals x mit Sampling-Frequenz fs (Default fs = 8192 Hz) Typische Anwendung: >> t = linspace(0,1,8192); >> x = 0.5*sin(2*pi*440*t) + 0.3*sin(2*pi*600*t); >> sound(x) >> spektrum(x)
>> load nadeln >> plot([x1; x2], [y1; y2], 'k') >> axis equal
Gratis: 0800-STRASSEN (Sorgentelefon für Studierende)