답변 있음
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, ...

10년 초과 전 | 1

| 수락됨

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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')...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

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

10년 초과 전 | 6

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 13

답변 있음
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...

10년 초과 전 | 1

| 수락됨

답변 있음
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 = ...

10년 초과 전 | 2

답변 있음
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...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 4

| 수락됨

답변 있음
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...

10년 초과 전 | 0

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

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 0

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

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 5

| 수락됨

답변 있음
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'; ...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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"....

10년 초과 전 | 0

| 수락됨

더 보기