From: ImageAnalyst on 3 Apr 2010 18:42 It didn't work because you didn't describe what you wanted, or aren't describing what you want. So our next guess is that you want the reshape() function. This will reshape a 64 by 64 array into a 1 by 4096 array. Then I add the indexes to fill out the additional 4096 elements in the first row. % Create some sample data in a 64x64 array. a64x64 = rand(64,64); % 64 * 64 = 4096 elements % Reshape them into a 1x4096 row vector. a1x4096 = reshape(a64x64, [1 4096]); % Use this plus the index to create a 2-row array. % Just guessing on the first row since anil didn't specify. a2x4096 = [1:4096; a1x4096]
|
Pages: 1 Prev: adding a header to a txt file Next: Need help with MATLAB assignments, will PAY |