celltonumeric.m

버전 1.0.0.0 (1.89 KB) 작성자: Amos Storkey
Take cell array data (such as from loadcell) and convert strings to categorical numeric form.
다운로드 수: 396
업데이트 날짜: 2010/1/13

라이선스 보기

Converts string data to numeric form, via numeric references to string arrays. Numeric data is unchanged.

Usually used after loadcell.m and sometimes before datato1ofm.m
Helps make the loaded data more useful!

celltonumeric - convert cell to entirely numeric representation
function [newdata,contentlist] = celltonumeric(data,sharing);

DATA is the complete dataset. It is presumed that all the possible states are represented in the dataset. If not the data should be augmented with dummy data so that this is the case. Each column of DATA corresponds to a different attribute, and each row a different data item. Each attribute must be exclusively numeric or string.

NEWDATA is the output numeric dataset, which is the same size and DATA.

SHARING is an optional binary matrix representing the attribute sharing graph. Connected attributes are presumed to share the same attribute values. The default is no connection to other attributes (unit matrix)

CONTENTLIST is a cell array, with one term for each attribute. CONTENTLIST is empty for attributes which are numeric. For string attributes it gives the map of the corresponding string associated with each number in NEWDATA.

인용 양식

Amos Storkey (2024). celltonumeric.m (https://www.mathworks.com/matlabcentral/fileexchange/26369-celltonumeric-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Categorical Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0