To save ten 784x1 vectors into a single 784x10 matrix in MATLAB, you can create an empty matrix of size 784x10, and assign each vector to a column of that matrix.
Here's some MATLAB code that demonstrates how to do this:
main.m360 chars15 lines
In the code above, vector1
through vector10
are assumed to be the ten 784x1 vectors that you want to save in the matrix. The :
operator specifies that we want to assign the entire vector to a particular column of the matrix. Note that the number of rows in each vector needs to match the number of rows in the matrix.
gistlibby LogSnag