n = -10 : 10;
l = 1;
help exp
doc exp
1
x = exp(l * n)
plot(n,x)
doc
stem(n,x)
grid on
clc
figure
stem(n,x)
l = 0.5;
x = exp(l * n);
hold on
stem(n,x,'r')
l = 0.9;
x = exp(l * n);
stem(n,x,'g')
exp(1)
format long
exp(1)
exp(0.5)
exp(0.9)
exp(0.9) .^ n
ans + ans
clc
l = -0.9;
x = exp(l * n);
stem(n,x,'m')
3 ^ 2
3 ^ [2 3]
3 .^ [2 3]
clc
figure
1.5 .^ n;
x = 1.5 .^ n;
stem(n,x)
x = 0.5 .^ n;
hold on
stem(n,x,'r')
x = (-0.5) .^ n;
stem(n,x,'y')
x = (-1.5) .^ n;
stem(n,x,'k')
legend('1.5','0.5','-0.5','-1.5')
legend('1.5','0.5','-0.5','casa')
clc
ls
cd Documentos/
ls -l
cd Matlab/
ls -l
clc
pwd
edit d.m
a = 3
help zeros
zeros(2,3)
pwd
close all
clear all
clc
d(-5)
d(23)
d(0)
n = -10:10;
clc
n = -10:10;
impulso = d(n)
figure
stem(n,impulso)
stem(impulso)
stem(n,impulso)
stem(n,d(n))
stem(n,d(n-3))
stem(n,d(n+3))
stem(n,d(n+3) + d(n-5))
stem(n,d(n+3) + d(n-5) + 0.5*d(n-1))
grid on
clc
2 == 3
2 = 3
2 == 3
2 <= 3
(2 <= 3) * 8
clc
[1 2 3 4 5] >= 3
a = [1 2 3 4 5] >= 3
clc
n = -3:3;
d(n)
n
edit u.m
u(n)
stem(n,u(n))
n = -20:20;
figure
stem(n,u(n))
title('Degrau unitário')
xlabel('n [amostra]')
ylabel('u[n]')
axis([-20 20 -0.1 1.1])
clear all
close all
clc
ls -l
doc mp3
edit operacoes.m
[v1,v2,v3] = operacoes(5,10)
clc
clear all
close all
clc
[y, fs] = audioread('Audio.mp3');
figure
plot(y)
figure
subplot(2,1,1)
plot(y(:,1))
subplot(2,1,2)
plot(y(:,2))
doc sound
sound(y(1:10000),fs)
