Beantwortet
How to import data into a dataset from a space-delimited ascii file.
Mark, I think you're going to need to use MultipleDelimsAsOne for this file. To do that, you're gonna need to pass in a format, ...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
Need to output my data which is currently in a for loop to a table!
Olivia, all you have are strings, and presumably you want one column of strings and eight columns of numbers. TastyPastry's sugg...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
help writing a script that tells the day of the week
... and another way, using datetime (if you have R2014b or later): >> d = datetime('08/31/2011','InputFormat','MM/dd/yyyy')...

fast 11 Jahre vor | 0

Beantwortet
Conversion of dates to a different format
In R2014b or later, use datetime. Convert a yyyyMMdd string to a datetime: >> d = datetime('20110530','Format','yyyyMMdd...

fast 11 Jahre vor | 1

Beantwortet
How to plot part of Date column vs Data
In R2014b or later, try this: d = ( datetime('31-Jul-2013 10:59:50'):seconds(10):datetime('04-May-2015 12:45:10') )'; x ...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Convert date to UNIX time
In R2014b or later, use datetime: >> d = datetime('24-Apr-2011') d = 24-Apr-2011 >> posixtime(d) ans = ...

fast 11 Jahre vor | 6

| akzeptiert

Beantwortet
How to get string that uses datetime Format property?
Bruce, in your C.S-S.M post, you said, "write data and labels to a file". It's worth noting that if you have everything in a tab...

fast 11 Jahre vor | 0

Beantwortet
How to insert char to table?
Emmanouil, it's pretty hard to answer this for sure without more info. But assuming that you have a table like this >> out2...

fast 11 Jahre vor | 0

Beantwortet
readtable bug - if file has only one line, then readtable throws error ONLY if ReadRowNames = 1
cmo, you are correct, thank you for finding this bug. I will make a note to have it fixed. For the time being, you can read in t...

fast 11 Jahre vor | 1

Beantwortet
Is there a simpler way to create an empty Table with a list of VariableNames?
Andrei, Walter's solution works, as would optionsChange = array2table(zeros(0,9), 'VariableNames',{...}); or even o...

fast 11 Jahre vor | 13

Beantwortet
readtable truncates rownames if using ReadRowNames
cmo, you are correct, thank you for finding this bug. I will make a note to have it fixed. For the time being, you can read in t...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
Rounding Time to next half hour
In MATLAB R2014b or later: >> d1 = datetime({'9/8/2015 14:31:01', '9/8/2015 14:31:02', '9/8/2015 14:31:03'}) d1 = ...

fast 11 Jahre vor | 2

Beantwortet
Problem with importing Date & time from Excel
Sangjun, it sounds like you're using a version of MATLAB prior to R2014b, so Walter's suggestion won't work. I'm assuming you...

fast 11 Jahre vor | 1

Beantwortet
Extracting Table Data by Date
Andrew, everything dpd said sounds right, but let me just start over. You're using date strings because they're easy to read. Fa...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Timezone to UTC: How do I add duration vector to datetime vector?
Frank, what's up is Daylight Saving Time, which occurred on March 8th this year. I'm guessing you knew that, but got mixed up in...

fast 11 Jahre vor | 4

| akzeptiert

Beantwortet
convert table to array or matrix
There are two ways to converta table to a (numeric in this case) array: 1) call table2array 2) use {} subscripting for the v...

fast 11 Jahre vor | 0

Beantwortet
using of tables for questionnaire answers
Marta, you should provide a short example of your data so that it's clear what you have.

fast 11 Jahre vor | 0

Beantwortet
When using Readtable, how do I convert column of data from text to date?
NJBadger, two suggestions: 1) If you use the Import Tool rather than readtable, you can read directly to a datetime variable ...

fast 11 Jahre vor | 0

Beantwortet
Use of time Series
Cedric, while the timeseries class does not support datetime arrays, it does have methods to synchronize or resample time series...

fast 11 Jahre vor | 0

Beantwortet
cell to string to date time
Samantha, it sounds like you have code that you generated using the Import Tool. When you import a text file using the IT, you c...

fast 11 Jahre vor | 0

Beantwortet
Improve speed to max calculation for max daily output
There are lots of ways to do this. Here's one that assumes you have R2014b or later. If you only have R2013b or later, you can s...

etwa 11 Jahre vor | 0

| akzeptiert

Beantwortet
Why can't I access day, juliandate?
KE, just to be clear, if you have MATLAB R2015a, then you have datetime, along with its day and juliandate methods. No extra too...

etwa 11 Jahre vor | 0

Beantwortet
Why can't I access day, juliandate?
KE, day is a function in the Financial Toolbox, and juliandate is a function in the Aerospace Toolbox. The fact that you're aski...

etwa 11 Jahre vor | 1

Beantwortet
How to do monthly average in a Table?
Even without Statistics And Machine Learning Toolbox (or Statistics Toolbox prior to R2015a), the varfun method of table also do...

etwa 11 Jahre vor | 5

| akzeptiert

Beantwortet
Find three largest and smallest values in column of table
As Walter said, this is just sorting. In R2013b or later, use a table: >> asset = {'a'; 'a'; 'a'; 'b'; 'b'; 'b'; 'c'; 'd'; ...

etwa 11 Jahre vor | 1

Beantwortet
Advice on Indexing A table.
Let's assume you have these in your workspace: >> x = [35 36 38 38 38 38 38 38 38 38 46 46]'; >> date = {'24/07/2014' '0...

etwa 11 Jahre vor | 0

Beantwortet
Divide column 17 of table by 365
More directly: x.Var15 = x.Var15 / 365 % or whatever the 15th var is named or x.Var16 = x.Var15 / 365 % or whatever...

etwa 11 Jahre vor | 0

Beantwortet
As I can compare rows in a column?
The followup discussion in this thread is not exactly clear, but if the goal (as stated in the original post) is to "divided int...

etwa 11 Jahre vor | 0

Beantwortet
Monthly Average for Large Dataset
Hard to tell if that file is space- or tab-delimited, and if that's the top of the file, or what. It helps to provide more preci...

etwa 11 Jahre vor | 0

Beantwortet
How to select one column of data from a csv file containing headers and strings?
It's not clear what you mean by, "save them into a table". It sound like you mean, "save that one column to a numeric variable"....

etwa 11 Jahre vor | 0

| akzeptiert

Mehr laden