Sometimes, it's necessary to try and connect to the QUT computers as a student, whether it be for using certain proprietary software, certain environments, or beefier computers?
This guide assumes you are not on campus and require a VPN client (Virtual Private Network) to behave as if you are at QUT.
MATLAB code to demonstrate [Fourier series][1] representation of periodic signals (as a sum of sinusoidal functions).
The animation shows an approximation of a square wave signal using the first 4-terms of its Fourier series. (Change the parameters near the top of the code to manipulate the animations and explore other variations).
![animation1][6] ![animation2][7]
This was inspired by the following similar animations:
- [Fourier Series Animation using Circles][2]
TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl
extension and a different #!
call.
The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect
we use the following:
#!/usr/bin/expect