Thursday, March 14, 2013

Introduction to Numerical Computation (FreeMat)

For this lab, we experimented with FreeMat to learn how to solve matrices and graph functions.

Procedure:

First we try to plot 2 sinusoidal functions on the same graph.


Next, The first assignment was solving the circuit using FreeMat for calculations.

The results show that i_R3 = -0.1857.

The next section is Plotting Exponentials
Assignment 1-1: Graph Circuits A and B with the output of 2e^(-t/t_c).
t_c of A is 100 ms, and t_c of B is 200 ms.


Assignment 1-2: Graph Circuits A and B now have a different output of 2(1-e^(-t/t_c)). The time constants are the same as 1-1.


Assignment 2-1: Graph the functions 3sin(2t + 10°), 5cos(2t - 30°) and their addition function.


Assignment 2-2: Make 2-1 into a script and demonstrate it with 10 Hz.

After completing the script, we test it using 10 Hz giving us the resulting graph below.


No comments:

Post a Comment