MATLAB Programming Fundamentals - MathWorks
See Also bar | categorical | countcats | histogram | pie | rose | scatter | summary Related Examples “Access Data Using Categor ...
Compare Categorical Array Elements This example shows how to use relational operations with a categorical array. Create Categori ...
Compare Entire Array to Character Vector Compare the entire categorical array, colors, to the character vector 'blue' to find th ...
ans = 2x1 logical array 1 1 Both values in the first column, blue, are greater than the corresponding values in the second colum ...
Combine Categorical Arrays This example shows how to combine two categorical arrays. Create Categorical Arrays Create a categori ...
Group1 = [A;B]; Summarize the categorical array, Group1 summary(Group1) milk 20 water 18 juice 15 Group1 is a 53-by-1 categorica ...
Concatenation appends the categories exclusive to the second input, soda, to the end of the list of categories from the first in ...
“Combine Categorical Arrays Using Multiplication” on page 8-27 “Convert Text in Table Variables to Categorical” on page 8-7 “Ac ...
Combine Categorical Arrays Using Multiplication This example shows how to use the times function to combine categorical arrays, ...
D = 1x3 categorical array + blue - red + green categories(D) ans = 6x1 cell array {'+ blue' } {'+ green'} {'+ red' } {'- blue' } ...
{'blue +' } {'blue -' } See Also categorical | categories | summary | times Related Examples “Create Categorical Arrays” on pag ...
Access Data Using Categorical Arrays In this section... “Select Data By Category” on page 8-30 “Common Ways to Access Data Using ...
Name Size Bytes Class Attributes Age 100x1 800 double Diastolic 100x1 800 double Gender 100x1 12212 cell Height 100x1 800 double ...
VA_CountyGenIndex is a 100-by-1 logical array containing logical true ( 1 ) for each element in the categorical array Location t ...
histogram(Age(Gender=='Female')) plots the age data for the 53 female patients. Delete Data from a Particular Category You can u ...
summary(Location) County General Hospital 39 St. Mary's Medical Center 24 VA Hospital 0 The patients observed at VA Hospital are ...
Location = removecats(Location,'County General Hospital'); Display the first eight elements of the categorical array, Location. ...
You can make selected elements undefined without removing a category or changing the categories of other elements. Set elements ...
More About “Advantages of Using Categorical Arrays” on page 8-43 “Ordinal Categorical Arrays” on page 8-46 See Also ...
Work with Protected Categorical Arrays This example shows how to work with a categorical array with protected categories. When y ...
«
14
15
16
17
18
19
20
21
22
23
»
Free download pdf