Community Profile

photo

Eric Sofen


MathWorks

9 total contributions since 2018

Contact

Eric Sofen's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to use timetable with hierarchical data
For synchronizing leaf-to-leaf, you probably will end up wanting to write a for-loop, looping over leaf grouping variables, sync...

19 Tage ago | 0

| accepted

Answered
Issue with loading datetime from table
There's no reason to go through cell to pass the datenums into datetime: Data = readtable(‘FileMaker.csv’); Dates = datetime...

19 Tage ago | 0

Answered
convert "number of days since" to datetime, given 365-day and 360-day calendars (not Gregorian)
Adding support for a broader range of calendars is something I've been thinking about. For a fixed-length calendar (360-day or 3...

19 Tage ago | 0

Answered
Associate value to the correct date
Take a look at the timetable synchronize method. If you import your "1st", "2nd", "3rd" as separate timetables tt1,tt2,tt3, then...

6 Monate ago | 0

| accepted

Answered
Increment dates using for loop
Are there any other calculations being done in the loop body of your actual code? If not, this can be done without looping: sam...

6 Monate ago | 0

| accepted

Answered
Calculate mean of calendarDuration? (i.e. mean of age)
Hi Max, You probably want to calculate the ages of the participants as durations, and mean() is defined for duration. calendarD...

6 Monate ago | 0

Answered
Reorder table variables / columns
In R2018a, check out the new <https://www.mathworks.com/help/matlab/ref/movevars.html movevars> function for rearranging variabl...

mehr als ein Jahr ago | 2

Answered
How to go about grouping, listing and (if user specifies) writing to a file a group of time series objects which are of different lengths (# of rows) and different time bases?
Take a look at the synchronize function for timetables. By default, synchronize(tt1,tt2) will construct a new time table with a ...

mehr als ein Jahr ago | 0

| accepted

Answered
Have a string with an analog time value, how to convert it to total time elapsed?
The duration datatype is the correct type to represent this data, and you can plot durations. In R2018a, there is a new capab...

mehr als ein Jahr ago | 0