What is the shortest way to make matrix from a vector using the 1-of-K coding scheme?
1 view (last 30 days)
Show older comments
How to make matrix from a vector using the 1-of-K coding scheme but without a for cycle? (1,1,2,3,1,3,2) to (1,0,0; 1,0,0; 0,1,0; 0,0,1; 1,0,0; 0,0,1; 0,1,0)
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox 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!