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

조회 수: 2 (최근 30일)
Emil Brewer
Emil Brewer 2020년 9월 15일
답변: Deva Nayak 2020년 9월 15일
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개)

Geoff Hayes
Geoff Hayes 2020년 9월 15일
Emil - see Convert DataMatrix object to double-precision array for details on the conversion.

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

카테고리

Help CenterFile Exchange에서 Data Import and Management에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by