Community Profile

# Lei Hou

### MathWorks

Last seen: 14 dagar ago Active since 2019

#### Content Feed

View by

(Select all that apply) In which of the following situations would you typically use a categorical array?
Hi Sangat, Typically, categorical is useful when your array is large, contains duplicated values and has finite set of discrete...

ungefär en månad ago | 1

| accepted

Filter a timetable (balance a panel data)
Hi Angelavtc, You can use unstack to first unstack the "Id" variable into multiple variables (In your case, into 3 variables). ...

| accepted

Join several timetables with different variables and times and duplicates
Hi, I came up with two solutions. Solution 1: use outerjoint. It is easy to understand but have duplicated rows that need to b...

mer än ett år ago | 1

| accepted

Searching tables, for modification
Hi Frans, To index into a table, you should use T{rows, vars} instead of T(rows, vars). May I ask a question about why didn't ...

nästan 2 år ago | 0

| accepted

Creating numerical variables from categorical variables in an unbalanced dataset
Hi Grigorios, You can do something as the following. catVar = categorical(["a" "b" "c" "b" "a"]); numValue = [0.1 3 100]; % T...

nästan 2 år ago | 0

| accepted

Plotting table data with dates
Hi Jinang, In your code, the first column of "A" is not a datetime. It is just numeric value calculated by using division opera...

nästan 2 år ago | 0

| accepted

datetime "PivotYear" doesn't work?
Hi Richard, The pivot year has an effect only when the 'InputFormat' parameter is specified and it includes y or yy. Therefore,...

ungefär 2 år ago | 0

| accepted

Find a substring in table
Hi Katharina, You should cellstr to convert the categorical data to a cell array of character vectors as: startsWith(cellstr(t...

ungefär 2 år ago | 0

making `errorbar` work with `datetime`
Sai is correct that errorbar doesn't yet support datetimes. I've made an enhancement request, and hopefully errorbar will be upd...

mer än 2 år ago | 4