Question


Remove rows with NaN from a table
I have a table T. T has some rows with NaN. I would like to remove any rows with NaN in any entry. Please advise.

7 years ago | 2 answers | 0

2

answers

Question


table2timetable: date lost in a generated timetable
I have a table that has NaN and then applied table2timetable. There were no error messages. But the resulting timetable does not...

7 years ago | 1 answer | 0

1

answer

Question


skipping code sections when running the code
Suppose I have 30 code sections and test the 23rd one. It would be cumbersome that I need to run 22 sections each time. Suppose ...

7 years ago | 2 answers | 0

2

answers

Question


Plot only for positive y
I have plot(x,y) hold on plot(x,z) hold on plot(x,w) I need to have a plot for only...

7 years ago | 1 answer | 0

1

answer

Question


Function 'subsindex' is not defined for values of class 'datetime'.
I have a simplest possible csv file but still cannot plot(test.X,test.Y) with the above message. Please advise.

7 years ago | 2 answers | 0

2

answers

Question


Removing hours and minutes from date
I have an entry 04/20/2016 00:00 I want to set it just to 04/20/2016 Please advise the steps.

7 years ago | 0 answers | 0

0

answers

Question


Plot with mean and std of variables
I have a basic plot as follows. How can I display mean and std of X, Y, and Z in the legend? Plot1=plot(T,X) hold o...

7 years ago | 1 answer | 0

1

answer

Question


Representation of Y axis grid
When I draw a plot, y axis has grids of 0, 1, 2, 3 * 10^5. This is not very easy to understand. Thus I would like to have grids ...

7 years ago | 1 answer | 0

1

answer

Question


Put a new variable at the top of a table
I create a new variable a at table T. When I try to view T using viewer, a will be at the end (the most right) of the screen. Is...

7 years ago | 2 answers | 0

2

answers

Question


Key variable renamed after outerjoin
I outerjoin two tables A and B with the key variable "date". I find that the resulting table has variables name date_A and date_...

7 years ago | 1 answer | 0

1

answer

Question


Plot: dealing with data available only on weekdays
I want to plot X (date), Y, and Z. Y has an entry for every day but Z has entry only for weekdays (not weekends). Will the code ...

7 years ago | 1 answer | 0

1

answer

Question


define a color for plot
I create a plot such as Plot1=plot(Date,A,'Color',[0.1112456 0.2098437 0.31116789],'LineWidth',1.2) Now I want to define...

7 years ago | 2 answers | 0

2

answers

Question


Plot with a lag, Part 2
In a previous question <https://www.mathworks.com/matlabcentral/answers/404779-plot-with-a-lag> "Suppose I want to have plot ...

7 years ago | 1 answer | 0

1

answer

Question


Plot with a lag
Suppose I want to have plot of lagged x and y that belong in table T. For example, I want to have a plot that the first element ...

7 years ago | 2 answers | 0

2

answers

Question


Color of plots when there are multiple plots
I draw multiple plots using hold on Plot61=plot(Date,A,'LineWidth',1.2) hold on Plot62=plot(Date,B,'LineWidth...

7 years ago | 2 answers | 0

2

answers

Question


fitlm on timetable: error message
I try to run fitlm on a time table. I checked dependent and independent variables and got following outputs ans = ...

7 years ago | 1 answer | 0

1

answer

Question


Extract a table with some range of dates
Suppose I have a table with date from 2000 to 2018. I want to create a new table where the date is between Jan 1 2010 and Dec 31...

7 years ago | 1 answer | 0

1

answer

Question


plot with a limited range of x
I would like to plot (x,y) where x is dates from 2000 to 2018. I would like to plot only for x from Jan 1 2010. Please advise ho...

7 years ago | 1 answer | 0

1

answer

Question


picking maximum difference across entries of row vectors, Part 3
This is a follow-up with a previous question. <https://www.mathworks.com/matlabcentral/answers/404403-picking-maximum-difference...

7 years ago | 1 answer | 0

1

answer

Question


Rename all variables in table
Suppose I have a table T about New York with variables a,b,c.... I would like to rename all variables in T as 'NYa",'NYb',.... e...

7 years ago | 1 answer | 0

1

answer

Question


picking maximum difference across entries of row vectors, Part 2
I would like to generalize the previous question ( <https://www.mathworks.com/matlabcentral/answers/404240-picking-maximum-diffe...

7 years ago | 2 answers | 0

2

answers

Question


Readtable error: Index exceeds array bounds.
I ran readtable as in the following command: E = readtable('C:\Dropbox\Matlab\AAA\BBB.csv'); and got the following error...

7 years ago | 1 answer | 0

1

answer

Question


outer join of multiple tables
I have multiple (about 15) csv files that I would like to outerjoin. I would like to know whether there is a simple way to write...

7 years ago | 0 answers | 0

0

answers

Question


picking maximum difference across entries of row vectors
I have a matrix A. I would like to create a column vector B that is for each row, take a difference between every possible pa...

7 years ago | 1 answer | 0

1

answer

Question


Extracting the data from a column vector according to mod
I have a column vector x. I want to create a vector x1 that are the 1st, 5th, 9th, ... elements of x, x2 that are the 2nd, 6th, ...

7 years ago | 3 answers | 0

3

answers

Question


Add a variable to a table
Suppose I have a table T. I want to add a variable x to T. Please advise the steps.

7 years ago | 1 answer | 0

1

answer

Question


running fitlm with calculation of variables in a table
Suppose I have a table with variables x, y, and z. I want to run a regression with y = a = n*(x/z) please advise how to...

7 years ago | 1 answer | 0

1

answer

Question


Plot where x axis is the date, Part 2 (edited)
I would like to have x axis of the plot between April 20 2016 and May 18 2018. Please advise how to modify an example xlim...

7 years ago | 3 answers | 0

3

answers

Question


Plot where x axis is the date
In my plot x axis is the date starting from 04/20/2018 and ending 06/01/2018. How can I set the x axis of the plot to start from...

7 years ago | 1 answer | 0

1

answer

Question


ismember error message "Subscript indices must either be real positive integers or logicals."
I have two matrices A and B, and the desired output in an attached csv file. To obtain the desired outcome I have run [~,lo...

7 years ago | 1 answer | 0

1

answer

Load more