MATLAB Programming Fundamentals - MathWorks
If either condition is false, for any row, then datestr interprets the m-by-6 matrix as m- by-6 serial date numbers. Usually, da ...
...
Categorical Arrays “Create Categorical Arrays” on page 8-2 “Convert Text in Table Variables to Categorical” on page 8-7 “Plot C ...
Create Categorical Arrays This example shows how to create a categorical array. categorical is a data type for storing data with ...
class(state) ans = 'categorical' List the discrete categories in the variable state. categories(state) ans = 6x1 cell array {'CT ...
Columns 7 through 8 medium small class(sizeOrd) ans = 'categorical' The order of the values in the categorical array, sizeOrd, r ...
small 30 medium 35 large 35 Create Categorical Array from String Array Starting in R2016b, you can create string arrays with the ...
Columns 7 through 8 <undefined> Mars See Also categorical | categories | discretize | summary Related Examples “Convert T ...
Convert Text in Table Variables to Categorical This example shows how to convert a variable in a table from a cell array of char ...
The variable, SelfAssessedHealthStatus, contains four unique values: Excellent, Fair, Good, and Poor. Convert SelfAssessedHealth ...
Values: County General Hospital 39 St. Mary s Medical Center 24 VA Hospital 37 The table variables Gender, SelfAssessedHealthSta ...
Peterson 32 60 136 Ramirez 48 64 137 Bennett 35 64 131 ⋮ A is a 19-by-3 table. Since ordinal categorical arrays have a mathemati ...
Stewart Male 49 68 170 ⋮ T2 is a 26-by-4 table. See Also Related Examples “Create and Work with Tables” on page 9-2 “Create Cat ...
Plot Categorical Data This example shows how to plot data from a categorical array. Load Sample Data Load sample data gathered f ...
The workspace variable, SelfAssessedHealthStatus, contains four unique values, Excellent, Fair, Good, and Poor. Convert SelfAsse ...
The function histogram accepts the categorical array, SelfAssessedHealthStatus, and plots the category counts for each of the fo ...
Create Pie Chart Create a pie chart directly from a categorical array. figure pie(SelfAssessedHealthStatus); title('Self Assesse ...
The function pie accepts the categorical array, SelfAssessedHealthStatus, and plots a pie chart of the four categories. Create P ...
The first input argument to pareto must be a vector. If a categorical array is a matrix or multidimensional array, reshape it in ...
Gender is a 100-by-1 categorical array with two categories, Female and Male. Use the categorical array, Gender, to access Weight ...
«
13
14
15
16
17
18
19
20
21
22
»
Free download pdf