Beantwortet
What is the best way to append double arrays while working in a loop?
You can append values to a table using concatenation as follows https://www.mathworks.com/help/matlab/matlab_prog/add-and-delet...

mehr als 5 Jahre vor | 0

Beantwortet
Get variable value from imported text
Sounds like you could use readtable. https://www.mathworks.com/help/matlab/ref/readtable.html >> readtable('05-2350-33R.S20201...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Delete data from the following minutes from data that does not meet a certain condition
I believe the following post answers your question https://www.mathworks.com/matlabcentral/answers/402361-delete-rows-in-a-tabl...

mehr als 5 Jahre vor | 0

Beantwortet
Moving vertical line as time marker
Check out the xline function, which lets you plot a vertical line as well as update its position. https://www.mathworks.com/hel...

mehr als 5 Jahre vor | 0

Beantwortet
Labelling columns of large array in a searchable way?
table supports custom metadata properties. https://www.mathworks.com/help/matlab/matlab_prog/add-custom-properties-to-tables-an...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Need help with storing values in a table and/or matrix
If you want to create a table like in the attached screenshot, you can use the table constructor. For example, >> table([0.01;0...

mehr als 5 Jahre vor | 0

Beantwortet
How do I get a function in a for loop so it applies it to an entire table?
To add to Chris' answer, you can also find the yearly max for each station using retime. For example, using the first two column...

mehr als 5 Jahre vor | 0

Beantwortet
How to use movsum with datetime?
@SaaraL I should first mention that the function call in your original question should work if you pass a numeric vector or matr...

mehr als 5 Jahre vor | 1

Beantwortet
Problem plotting 1D array versus table column: I want a single curve/series but am instead getting a separate series for every array element.
I'd first recommend converting your table into a timetable so you can see the time step for each row. https://www.mathworks.com...

mehr als 5 Jahre vor | 0

Beantwortet
Calling data based on column name
You could do something like mean(t{:,varName}) where t is your UI table data (assuming it is represented as a table type) and ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
loop based on a condition in another column
To add to Walter's answer, you might also consider groupsummary. https://www.mathworks.com/help/matlab/ref/double.groupsummary....

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I remove characters in cvs file?
If you use readtable, you can convert the table to a matrix by using the table2array function. https://www.mathworks.com/help/m...

mehr als 5 Jahre vor | 0

Beantwortet
Training a Neural Network
To add to Olof's answer, the categorical type allows you to efficiently represent a finite set of discrete categories that you m...

mehr als 5 Jahre vor | 1

Beantwortet
Synchronizing several large timetables
Where are your timetables coming from? Are you reading them from one or more files? If so, it probably makes more sense to creat...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Create elapsed time vector for loop
1) You can convert timestamp data into elapsed time using datetime subtraction. >> dt = datetime(2020,1,1:5) dt = 1×5 ...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Combine 2 datasets and include the duplicates
Check out innerjoin and outerjoin. https://www.mathworks.com/help/matlab/ref/innerjoin.html https://www.mathworks.com/help/mat...

mehr als 5 Jahre vor | 0

Beantwortet
How can I do the SINR representation of some points?
I'm a little unclear on your workflow, but you might consider one of the geographic plots, such as geobubble. https://www.mathw...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How to sort data (multiple rows into one)
This sounds like a good use for unstack. https://www.mathworks.com/help/matlab/ref/unstack.html For example, suppose we have...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
how to accumulate 10 minute values to daily values
Check out retime. https://www.mathworks.com/help/matlab/ref/timetable.retime.html

mehr als 5 Jahre vor | 0

Beantwortet
How do I range through a set of columns in a table to generate data and store data in new columns?
You might be interested in varfun. https://www.mathworks.com/help/matlab/ref/varfun.html

mehr als 5 Jahre vor | 0

Beantwortet
Concatenate a string array and a table of different dimensions
writematrix and writetable both take a 'WriteMode' name-value pair that can be set to 'append'. To write a header followed by a ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Combining two stacked plots
In cases such as this one, where the tables we want to plot have the same height, we can concatenate them horizontally and call ...

fast 6 Jahre vor | 1

Beantwortet
Read one column only of a large file, line by line?
You might also want to consider using a tall table. https://www.mathworks.com/help/matlab/import_export/tall-arrays.html

fast 6 Jahre vor | 0

Beantwortet
timer with a startat datetime variable in a different time zone
Thank you for reporting this issue. Unfortunately, the startat function currently ignores timezone information when a zoned date...

fast 6 Jahre vor | 0

Beantwortet
Change the format of an output figure of 'findchangepts'-function into datetime format.
This same figure can be created with the relevant x data by using the plot, title, and xline commands. https://www.mathworks.co...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
change datatip for segments of stacked bar charts
Take a look at the documentation for creating custom data tips. https://www.mathworks.com/help/matlab/creating_plots/create-cus...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Number of occurrences per category per month using table data
Check out the groupsummary function. https://www.mathworks.com/help/matlab/ref/double.groupsummary.html >> rng default >> Wea...

fast 6 Jahre vor | 0

Beantwortet
Plot serial date of excel into MATLAB
Do also prefer using readtable and readtimetable as opposed to xlsread.

fast 6 Jahre vor | 0

Beantwortet
Merge two columns in timetable?
One simple way to combine these variables is to add them together in a new timetable variable and delete the old variables. htt...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Dates beside the axis when plotting datetime
1) The date information can be hidden by setting the TickLabelsMode to 'manual' on the DatetimeRuler. ax = gca; ax.XAxis.TickL...

fast 6 Jahre vor | 1

Mehr laden