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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 3

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 4

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

Cargar más