필터 지우기
필터 지우기

Conversion of a Matrix into single Value

조회 수: 8 (최근 30일)
Qazi  Arbab Ahmed
Qazi Arbab Ahmed 2017년 2월 17일
댓글: Walter Roberson 2017년 2월 21일
Hello, I have a matrix of dimension 1x185x3. How can I convert it to a single value vector as my other features are single values 50.9 and 92.5. I want to store these three into a same vector, assume Class(i,:)=[Mean Dev1 Matrix]; Please share If you have any command to do this.
Thanks
  댓글 수: 3
Qazi  Arbab Ahmed
Qazi Arbab Ahmed 2017년 2월 21일
Properties mean? Sorry I didn't get that. And this matrix is for Mode of Image.
Walter Roberson
Walter Roberson 2017년 2월 21일
If you want mode of the image, then call mode() . However, it would not be uncommon for entries to not be duplicated in a floating point matrix, so mode() can be pretty meaningless in that case.
If mode() is not what you are looking for, then you need to give us some hints about how the value is to be calculated.
If we call your matrix M and call this calculation function F, then does it have to be the case that F([M(:,1),M(:,2),M(:,3)]) = F(M) ? Is F(M) = F(sort(M)) ? If you have two matrices A and B, then is F(A+B) = F(A) + F(B) ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by