Labeled rows and column in a matrix
1 次查看(过去 30 天)
显示 更早的评论
I would like to create a matrix with labeled rows and columns. Then use the labels to fill in the Matrix. For example: the first row of matrix A is word1 and the third column of A is word3. I want to value A(word1,word3)=1.5 . sometimes I need numerical index of rows/columns (like a normal matrix) and sometimes the labels. I tried container.map, but it does not have numerical index! Which structure would you suggest?
Thanks, Shima
2 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!