Community Profile

photo

clauper


Last seen: 6 Monate vor Aktiv seit 2019

Followers: 0   Following: 0

Statistiken

  • Thankful Level 3
  • Thankful Level 2

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


compare variable with different data types
I would like to run different lines of code, depending on the value of x. However, x can be string, logical, or numerical. ...

etwa ein Jahr vor | 4 Antworten | 0

4

Antworten

Frage


how to determine if vector of row times is within timerange?
I have a vector of row times and a time range: dates = datetime(2000,1,1):calyears(1):datetime(2002,1,1); tr = timerange(datet...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


strange error with varfun and anonymous function
The following example: tbl = table(randn(5,1)); func = @(x) cumsum(x); varfun(@func, tbl) gives me the error: Error usi...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
Look up a value in an incomplete list
I figured it out: keys = ["a", "b", "c", "d"]; vals = [3,4,2,1]; x = ["c", "d", "e"]; [~, idx] = ismember(x, keys); k...

etwa 2 Jahre vor | 0

Frage


Look up a value in an incomplete list
I have keys and values like this: keys = ["a", "b", "c", "d"]; vals = [3,4,2,1]; and I need to look up the values for x, bu...

etwa 2 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Are there "pause on error" and "run and time" options when running a live script
When running a *.m file, I have the option to "pause on error" and to "run and time". I cannot find this options when running *....

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Calculating group statistics using frequency weights
I have a large table of survey data with about 3 Mio. observations and 120 variables. The survey also contains a variable called...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I use splitapply when the applied function has non-scalar output?
I am trying clean variables in a dataset, creating a new table variable, but splitapply does not seam to allow for nonscalar out...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten