필터 지우기
필터 지우기

what are the methods of Encode function in matlab?

조회 수: 2 (최근 30일)
Gul
Gul 2018년 7월 5일
댓글: Jan 2018년 7월 5일
I am trying to encode my data and it is cell type of single type then I converted it to char type and I got this error : Invalid method option for ENCODE.
B = encode(DATA,'DocumentsIn','columns' );

답변 (1개)

Jan
Jan 2018년 7월 5일
According to the documentation, doc encode, Matlab expects inputs like:
code = encode(msg,n,k,'linear/fmt',genmat)
Here n and k are integer numbers.
Which "encode" function are you talking obout?
What exactly does "cell type of single type" mean? Please post some example data.
  댓글 수: 2
Gul
Gul 2018년 7월 5일
Hi Jan, I was planning to use this function : counts = encode(___,Name,Value) but it says that it's Invalid method option for ENCODE.
What exactly does "cell type of single type" mean? Please post some example data.
i mean the data i have is Cell Type and this cell Type has single type data as showen in the attached picture.
another a question i have is how to convert from imageSet type to matrix
Jan
Jan 2018년 7월 5일
It is still not clear, which "encode" function you mean. In "counts = encode(_,Name,Value)", what exactly is "____". This is the important point to clarify, which problem you have at all.
It depends, on what you can to have in the matrix. An imageSet contains different data. So please define uniquely, what you want the matrix to contain.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by