creating combinations for different data type
Show older comments
i have two inputs which has 2 differnt data types and i wanted to create combinations.
The first Column1 has input1 = 8, Age
The Secind Column 2 has input2 = 20, gender
And i want to create a combinations something like this
8,Age
20,Age
8,gender
20,gender
1 Comment
Dyuman Joshi
on 20 Jul 2023
Answers (1)
T = combinations([8, 20], ["Age", "Gender"])
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!