#Use the following script to import the data required for problem 4.
# Additionally, consider using the following functions in your solution. (These are not required, but suggested)
from scipy.io import loadmat as load
from numpy import power as power
from numpy import eye as eye
from numpy import ones as ones
from numpy.linalg import svd as svd
from numpy import sqrt as sqrt
from numpy import diag as diag
from numpy import mat as mat
from matplotlib.pyplot import figure as figure
from matplotlib.pyplot import plot as plot
from matplotlib.pyplot import text as text
from matplotlib.pyplot import title as title
from matplotlib.pyplot import show as show
from matplotlib.pyplot import savefig as savefig
# Load data
data = load('nycity.mat')
D = mat(data['D'])
c = []
[c.append(str(w[0][0])) for w in data['c']]