Risposto
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...

oltre 9 anni fa | 1

| accettato

Risposto
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'); ...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 3

Risposto
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...

oltre 9 anni fa | 0

Risposto
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.

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 4

Risposto
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...

oltre 9 anni fa | 0

Risposto
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' '...

oltre 9 anni fa | 1

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 1

Risposto
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-...

oltre 9 anni fa | 0

Risposto
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 ...

oltre 9 anni fa | 1

Risposto
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...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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.

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 1

Risposto
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 ...

oltre 9 anni fa | 0

| accettato

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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....

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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'...

oltre 9 anni fa | 0

Risposto
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...

oltre 9 anni fa | 0

Risposto
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 ...

oltre 9 anni fa | 1

Risposto
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...

oltre 9 anni fa | 0

Risposto
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.

oltre 9 anni fa | 2

| accettato

Risposto
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...

oltre 9 anni fa | 0

Carica altro