1. This code plots 10 random numbers. To do the same with a one-line command, type: plot(rand(10,1))
2. See example script.
3. See script for comments. This code solves for the electrostatic potential inside a 2-d square with a point charge in the center and constant φ=0 boundary conditions.
4. See soln