Community Profile

photo

Lei Hou

MathWorks

Last seen: 7일 전 2019 이후 활성

Statistics

  • Knowledgeable Level 2
  • First Answer

배지보기

Content Feed

보기 기준

답변 있음
(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...

3달 전 | 1

| 수락됨

답변 있음
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). ...

11달 전 | 0

| 수락됨

답변 있음
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...

2년 이하 전 | 1

| 수락됨

답변 있음
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 ...

2년 이하 전 | 0

| 수락됨

답변 있음
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...

2년 이하 전 | 0

| 수락됨

답변 있음
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...

2년 이하 전 | 0

| 수락됨

답변 있음
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,...

2년 이상 전 | 0

| 수락됨

답변 있음
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...

2년 이상 전 | 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...

2년 이상 전 | 4

답변 있음
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...

2년 이상 전 | 2

답변 있음
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...

2년 이상 전 | 1

| 수락됨