- #1
eugenius
- 38
- 0
Hello, I have an assignment that requires the use of matlab. Basically I'm going to be solving circuits in the laplace domain. The professor wants us to learn MATLAB because apparently real engineers use it.
I own MATLAB r2008a. I have no clue if it has the symbollic math toolbox or not, but I know that its having trouble understanding the script I'm supposed to use for this assignment.
Here is the script. If anyone has any clue what functions those are, and where the heck I'm supposed to get the symbolic toolbox that can read this script, please tell me.
I own MATLAB r2008a. I have no clue if it has the symbollic math toolbox or not, but I know that its having trouble understanding the script I'm supposed to use for this assignment.
Here is the script. If anyone has any clue what functions those are, and where the heck I'm supposed to get the symbolic toolbox that can read this script, please tell me.
Code:
% Unit-step function
u=sym('Heaviside(t)')
U=laplace(u)
pause
% Delta function
d=sym('Dirac(t)')
D=laplace(d)
pause
%exponential
e=sym('exp(-2*t)')
ezplot(e,[0,10])
axis([0 10 0 1.1])
grid
pause
E=laplace(e)
% decaying cosine
f=e*sym('cos(10*t)')
ezplot(f,[0,5])
axis([0 5 -1 1])
grid
pause
F=laplace(f);
pretty(F)
g=sym('Heaviside(t-2)');
G=laplace(g)
pretty(G)
pause