Is it possible to do this without for cycle?
Show older comments
T = zeros(M,K);
for k = 1:K
T(Y==k,k) = 1;
end
1 Comment
Birdman
on 19 Mar 2018
Share your entire code.
Accepted Answer
More Answers (1)
Walter Roberson
on 19 Mar 2018
0 votes
Categories
Find more on Thermal Analysis 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!