This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% The SVD demo with Covariance matrix | |
clear all; | |
clc; | |
% origin_mat = [2 4 6 8; 9 8 0 1]; %First original matrix 2x4 | |
origin_mat = [2 4 6 8; 9 8 0 1; 5 3 -2 -3]; %Second original matrix 3x4 | |
[u1, s1, v1]=svd(origin_mat); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Farhana Ferdousi Liza | |
""" | |
from matplotlib.mlab import PCA | |
import numpy as np | |