To produce a data matrix of size 𝑁 × (𝑀 + 1) using the feature mapping in Matlab, you can follow the steps below:
main.m125 chars5 lines
main.m29 chars2 lines
main.m301 chars11 lines
At the end of this process, the variable data_matrix
will contain the 𝑁 × (𝑀 + 1) data matrix where each row corresponds to a data point and each column corresponds to a feature including the bias term of 1.
gistlibby LogSnag