Saturday, March 30, 2013

FreeMat

This is a demonstration of the software FreeMat. Its uses are similar to that of the more widely known MatLab. Our sample includes:

1. A graph of the functions sin x and cos x between 0 and 2π.


2. Finding the current through the 10 Ω resistor in the following circuit:

We set iand ito the left and right loop, respectively, with both loops moving clockwise. By setting the systems of equations in FreeMat, shown below,


we find that the current is 0.1857 A in the direction of i.

3. Comparing exponential graphs with different time constants. The first graph is the function e-t/τ



Assignment 1-1 is a graph of 2e-t/τ. One time constant is 100 ms and 200 ms for the other.


Assingment 1-2 is a graph of 2(1-e-t/τ) with the same time constants.


4. Adding sinusoidal functions. 

Assignment 2-1 is the sum of two sinusoids: 3 sin(2t+0.175) and 5 cos(2t-0.525).


Assignment 2-2 is the same graph with a frequency of 10 Hz. The script for the output goes as follows:


and the graph 

No comments:

Post a Comment