How can I make a combination/permutation of all possible values with a given subset of data?
2 Kommentare
Hi @Andrew You ,
To generate all possible combinations of a 200 x 54 array from your current 200 x 164 array, you can extract the regions you need and concatenate them to form the desired array. Here's a sample code snippet to achieve this:
% Sample data (replace this with your actual data)
data = rand(200, 164); % Assuming your data is stored in a variable named 'data'
% Extract regions A1:A5, B1:B11, C1:C20, D1:D5 (adjust the indices accordingly)
regions_A = data(:, 1:5);
regions_B = data(:, 6:16);
regions_C = data(:, 17:36);
regions_D = data(:, 37:41);
% Concatenate the extracted regions to form a 200 x 54 array
combined_array = [regions_A, regions_B, regions_C, regions_D]; % Add more regions as needed
% Display the size of the combined array
size(combined_array)
So, by extracting the regions of interest and concatenating them, you can create the desired 200 x 54 array. Make sure to adjust the indices and add more regions as necessary to cover all 54 regions in your data. Please see attached results of code snippet.
Please let me know if you have any further questions.
Antworten (1)
3 Kommentare
Siehe auch
Kategorien
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!