photo

Lei Hou

Last seen: 2 mois il y a Actif depuis 2019

Followers: 0   Following: 0

Message

Statistiques

  • Knowledgeable Level 3
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Include rows containing specific value
rowfilter is used to select rows of a table meeting a specific condition. Here is the code might be useful in your case. >> rf ...

2 mois il y a | 1

Réponse apportée
Loop through a table using a specific condition and generate new table satisfying the particular condition
rowfilter is used to select table rows meeting specific condition. It might be helpful to you, too. https://www.mathworks.com/h...

2 mois il y a | 0

Réponse apportée
How to speed up table merge / concatenation?
Hi Andrea, I'm not sure whether ID in each table is unique (no duplicated value) and whether table_2 and table_3 contain all ID...

plus d'un an il y a | 0

Réponse apportée
How can I retrieve data from cdfepoch objects into datetime ?
Hi, Try this data = cdfread('yourfile.cdf', 'DatetimeType', 'datetime');

plus d'un an il y a | 0

Réponse apportée
Corresponding data arrangement problem
Hi Peter, You can create timetables from your data and use synchronize to to merge them into one timetable. >> load('plot_tida...

plus d'un an il y a | 0

Réponse apportée
Specifying "MergeKeys" for "innerjoin"
Hi, Regarding the output of innerjoin, the key values from left table are the same as that from the right table. So, we only ne...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
plotting data in the table
Hi, Stackedplot is designed to visualize table and timeble. Hoping it is helpful to you. Thanks, Lei

environ 2 ans il y a | 0

Réponse apportée
Hi. I have different data types (text and numeric) within the array range that I read from the input table. How can I avoid the error of using table2array and cell2mat?
Hi, Please check whether table2cell meets your need. >> t = readtable('Best NST models(1534002).xlsx'); >> table2cell(t)

environ 2 ans il y a | 0

Réponse apportée
Grouping consectuve datapoints from a table into an array
Hi Youssif, Try the following code to see whether it works for you. The main idea is to use diff to find the group edge, and th...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
how to split table with different time values
Hi, Datevec is in discourage use now. You can use retime to group your data and do plot. >> tt = readtimetable('tb.csv') t...

environ 2 ans il y a | 0

Réponse apportée
Can one extract a unit of time from a duration object?
Hi Alexandre, Applying seconds/minutes/... to a duration array returns numeric value >> d1 = seconds(60) d1 = duratio...

environ 2 ans il y a | 0

Réponse apportée
How to convert a time series data to txt file?
Hi James, You can use timeseries2timetable to convert your timeseries to a timetable. Then use writetimetable to write your dat...

environ 2 ans il y a | 1

Réponse apportée
How to concatenate 4 columns in one table into one coulomb
Hi, You can you mergevars to merge table variables. >> t = table("Japan_001164_jpg.rf.c02ee7802c701e228f23a4033eb236c2.jpg",38...

environ 2 ans il y a | 0

Réponse apportée
stack command errors with multiple column variables of different data types
Hi CAM, Your code is trying to stacking {'A1' 'B1' 'C1'} into one variable. Since C1 is text while A1 and B1 are numeric, an er...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Merge multiple tables with three keys
Hi David, I'm not sure whether I understand your problem correctly. Based on my understanding, outerjoin should help you with y...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Simple interactive plot with variable time axis
Hi Dormant, The function "stackedplot" is designed to plot time series data corresponding to the same time. I guess that functi...

environ 2 ans il y a | 0

Réponse apportée
I cannot interrupt the display of a very large table with "more on"
Displaying a large table is slow. I agree with you that Ctrl-C doesn't work. I used head(t) / tail(t) to just display the beginn...

environ 2 ans il y a | 0

Réponse apportée
Convert some Table Variables from Cell to Double
The funciton 'convertvars' is designed to be a convenient way to type conversion of table variable. Regarding your use case, you...

environ 2 ans il y a | 1

Réponse apportée
Plot time series data
The function 'stackedplot' is designed for plotting time series. >> C = {'2022-08-27T00:00:00.019538' 16065 '2022-08-27T...

environ 2 ans il y a | 0

Réponse apportée
segment exact time of signal
Hi Farhad, You can also use timetable + timerange indexing to complete your task. >> tt = array2timetable(val','StartTime',dur...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Determining the hourly time series from 5 minutes and 15 minutes time series data
Hi Manikandan, You can use timetable to store your data, and use retime to resample your data. rainfall = readtable('Rainfall....

presque 3 ans il y a | 0

Réponse apportée
(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...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
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). ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
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,...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 5 ans il y a | 0

Réponse apportée
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...

environ 5 ans il y a | 4

Charger plus