How do I convert a DataMatrix back to a normal matrix?

I am simply trying to extract from the datamatrix and convert it to a normal matrix or an array.

2 件のコメント

Geoff Hayes
Geoff Hayes 2020 年 9 月 15 日
Emil - do you mean this type of datamatrix or something else?
Emil Brewer
Emil Brewer 2020 年 9 月 15 日
Yes, that type.

サインインしてコメントする。

回答 (2 件)

Deva Nayak
Deva Nayak 2020 年 9 月 15 日

0 投票

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);

カテゴリ

製品

質問済み:

2020 年 9 月 15 日

回答済み:

2020 年 9 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by