Community Profile

photo

Lei Hou


Last seen: 6 días ago

MathWorks

10 total contributions since 2019

Contact

Lei Hou's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
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). ...

3 meses ago | 0

| accepted

Answered
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...

alrededor de 1 año ago | 1

| accepted

Answered
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 ...

alrededor de 1 año ago | 0

| accepted

Answered
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...

alrededor de 1 año ago | 0

| accepted

Answered
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...

alrededor de 1 año ago | 0

| accepted

Answered
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,...

más de 1 año ago | 0

| accepted

Answered
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...

más de 1 año ago | 0

Answered
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...

más de 1 año ago | 4

Answered
Find a substring in table
Hi Katharina, You can make use of table indexing to get that data you want. I’ll use a simple example below to illustrate the o...

más de 1 año ago | 2

Answered
Retime timetable out of bounds
Hi Rub, First, about your code examples I have some suggestions. I saw you used datenum in your first post. It is good that you...

más de 1 año ago | 1

| accepted