I have a matrix M1 and a vector M2. M1 is 4d matrix sized [150*150*3*9000] and the vector M1 is [9000*1]. Both of them saved using this command, save ('data. mat','M1','M2','-7,3'). I want to save the data randomly in both M1 & M2 but I need the rows in both M1 & M2 go together because M1 is the labeled or value of the images in M2. I tried many code, but after the change I found new rows in M2 is pointing to new rows in M1 which change the labels of the data. I tried for loop, but I've gone out of memory. So, could someone please share with me some an efficient code or way to do like this operation. Thanks in advanced.
MATLAB: Random save two large matrices in the same manner
matricesrandomsave
Related Question
- How to express the grey-scale image as a twodimensional matrix whose size is M1 x M2.
- Matrix value comparison of values
- Combining different size arrays based on time dimension and compute average for the last column
- M1(m2 == 1), but with dimensions of m1 intact
- Creation of matrices (24,72) M1&M2
- Defining vectors in MATLAB
Best Answer