Beantwortet
How to use function table (or timetable) inside a loop to generate a final table that contains a large number of variables (columns) with names
I'm not sure what is actually in the array DATA. I may have missed that in your description. It sounds like it might be a numeri...

mehr als 9 Jahre vor | 1

| akzeptiert

Beantwortet
I have 10 tables with a common column (string). I want to delete all rows with different value in the 10 tables.
An inner join or two might also work: >> table123 = innerjoin(innerjoin(table1,table2,'Key','Name'),table3,'Key','Name'); ...

mehr als 9 Jahre vor | 0

Beantwortet
How to create a new matrix adding vectors of different size based on time
If you have access to R2016b, I recommend looking at timetables. Even if you don't, I recommend looking at datetime and duration...

mehr als 9 Jahre vor | 3

Beantwortet
String to Date Subtraction
Walter's datetime suggestion returns a duration, which represents an exact, fixed-length amount of time. Depending on what you m...

mehr als 9 Jahre vor | 0

Beantwortet
How to combine tables stored inside a cell.
This is kind of unclear. The answer might be vertcat(c{:}), but it's hard to tell.

mehr als 9 Jahre vor | 0

Beantwortet
How can you create an empty table object with non-zero rows or non-zero columns?
Really, the question is kind of ill-posed, because to create an empty table with a non-zero number of variables, you need to def...

mehr als 9 Jahre vor | 4

Beantwortet
tables remove one field
I'll assume that your table looks like this: >> t = table({'No'; 10; 20}, {'No'; 10; 60}, {'No'; 'No'; 'No'}, 'VariableName...

mehr als 9 Jahre vor | 0

Beantwortet
How do we assign NaN to multiple table elements most efficiently? Why can't we assign multiple columns at once?
If you're putting NaNs into the same rows of X, Y, and Z, this should do what you want: elektapatients{errorData,{'X' 'Y' '...

mehr als 9 Jahre vor | 1

Beantwortet
Overwrite Column Values based on index derived using another colum of the same table
Try using strcmp instead of strfind. strcmp will create a logical vector. But also: AssetSuperClass aqnd SecType sound like a...

mehr als 9 Jahre vor | 0

Beantwortet
Error in using 'parpool'
Norm, Clint, Artem, and Simon, what if anything is your TZ environment variable set to, and what does /etc/localtime point to? I...

mehr als 9 Jahre vor | 0

Beantwortet
How to add non-row-sized variable to table?
The sampling times are not "one per row", so you're either going to have to replicate them as IA suggests, or store them as meta...

mehr als 9 Jahre vor | 1

Beantwortet
Decimals control to the writetable to txt!
There's not enough information to know what's going on here. This >> t = array2table(round(randn(10,5),4)) % or reshape(1e-...

mehr als 9 Jahre vor | 0

Beantwortet
How can I convert 8 digit "20171203" date to proper format?
If you have numbers, convert directly to datetime: >> datetime(20171203,'ConvertFrom','yyyymmdd') ans = datetime ...

mehr als 9 Jahre vor | 1

Beantwortet
Surfl chart; datetime on y-axis, letters on x-axis
surf supports datetime in R2016b, but not in R2016a. In 16a, you can convert datetimes to datenums and use datetick, or you c...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
What is the accuracy of the datenum function?
Phil, unless you're using pre-R2014b, you are probably better off using datetime instead of datenum. As others have said, the pr...

mehr als 9 Jahre vor | 0

Beantwortet
How I can create a stacked Bar from Table ?
I think to get the stacked bar char you'd pass t_new.Date and t_new{:,2:end}' to the bar command.

mehr als 9 Jahre vor | 0

Beantwortet
Automate splitting arrays to input into table
Use array2table, but use reshape(means,14,4) first.

mehr als 9 Jahre vor | 0

Beantwortet
How to sort by date
Unless you are using a version of MATLAB older than R2014b, use datetime and tables: >> time = {'2014/8/4 6:42';'2014/8/5 0...

mehr als 9 Jahre vor | 1

Beantwortet
Set date limits into x-axis
MATLAB graphics underwent a major upgrade a few releases back, so it's hard to know exactly what your figure looks like without ...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
I am receiving an error addressing tables in debug mode
In the debugger, when stopped in a method of a class, you are in effect "inside" the table, and none of the overloaded subscript...

mehr als 9 Jahre vor | 0

Beantwortet
How to plot event frequency using datetime array
I'm not sure this is right, but it sounds like you want, for example, to count the number of events on each day, and then take t...

mehr als 9 Jahre vor | 0

Beantwortet
Adding rows when missing seconds in a time serie
If you have R2016b, timetables and the retime method, called with 'secondly' and 'FillWithMissing', does exactly this. Even p...

mehr als 9 Jahre vor | 0

Beantwortet
Using Datenum to convert YYYY MM DD HH
Lewis, if you're using a recent version of MATLAB, take a look at datetime and tables. Maybe even timetables if you have R2016b....

mehr als 9 Jahre vor | 0

Beantwortet
How can I add the date and time (i.e. "Standard 07-Feb-2017_13_45_05") to this command when saving a User Cal Set named "Standard"?
This might be one way: >> d = datetime d = datetime 08-Feb-2017 12:48:26 >> char(d,'''Standard'' dd-MMM-y...

mehr als 9 Jahre vor | 0

Beantwortet
Insert Date Column Based off Known Start and Stop Time
It sounds like maybe you want a table that contains two datetime variables as well as x, y, and z, but as the cyclist says, you'...

mehr als 9 Jahre vor | 0

Beantwortet
I am trying to create an array of date number from a loop but I am only getting the final value not an array
Unless you're using a pretty old version of MATLAB, I suggest looking at readtable, datetime, and the plotting that automaticall...

mehr als 9 Jahre vor | 0

Beantwortet
Create subsets of data within a timetable
Another possibility is to keep the one timetable, but add a grouping variable to indicate which segment a given row is in. Then ...

mehr als 9 Jahre vor | 1

Beantwortet
time format as hr:min:sec
All the previous answers assume you want text, and that may be what you want. But if you're using R2014b or later, you can use d...

mehr als 9 Jahre vor | 0

Beantwortet
When export date/time to excel, change the time(mm:ss)..
Use dateshift to round the datetimes down to the start of the hour before saving to the file.

mehr als 9 Jahre vor | 2

| akzeptiert

Beantwortet
Matlab's writetable() function only exporting partial data of a table
John, if Walter's example is indeed what you have, then you are trying to export something that is hierarchical to a file format...

mehr als 9 Jahre vor | 0

Mehr laden