Convert numerical Matrix values into logical Matrix
8 次查看(过去 30 天)
显示 更早的评论
Hi...im very new to Matlab,but was hoping i could get an answer to this....If i have a Matrix of N x M, of a set of values like below.How do i get a new logical Matrix.The logical values correspond to the column number,which are also the A values.
input
A = [1 3 4 9 12
2 5 6 9 11
1 4 5 10 12]
output 1 2 3 4 5 6 7 8 9 10 11 12
1 0 1 1 0 0 0 0 1 0 0 1
0 1 0 0 1 1 0 0 1 0 1 0
1 0 0 1 1 0 0 0 0 1 0 1
Thank you.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!