How do I convert a DataMatrix back to a normal matrix?
2 次查看(过去 30 天)
显示 更早的评论
I am simply trying to extract from the datamatrix and convert it to a normal matrix or an array.
回答(2 个)
Deva Nayak
2020-9-15
Hi Emil,
What I understand is that you want to convert Datamatrix values to some sort of mattrix or array.
In order to extract matrix out of the datamatrix, you can follow the code given below -
import bioma.data.*
dm = DataMatrix(ones(5,5), {'row1','row2','row3','row4','row5'}, {'col1','col2','col3','col4','col5'})
singleValues = single(dm);
doubleValues = double(dm);
For more details refer to the link :https://www.mathworks.com/help/bioinfo/ref/doubledatamatrix.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Management 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!