Question


What would be a good proxy for time?
In the previous post https://www.mathworks.com/matlabcentral/answers/696080-correlation-of-two-variables-over-time-can-this-ha...

3 years ago | 1 answer | 1

1

answer

Question


Correlation of two variables over time: can this happen?
I have a variable x1 and x2 between January 1 till December 31. When I calculate the correlation between Janaury and June it is ...

3 years ago | 2 answers | 1

2

answers

Question


extract a datanum value of timetable
I have a timetable. I want to get the value of datetime of the 10th row, etc. How?

3 years ago | 1 answer | 0

1

answer

Question


extract a cell depending on the value of a variable
Suppose I have a 2*1 cell T. T{1} is of the form date city visitors -------------------- January 1 2020 NY 100 January 2 202...

3 years ago | 0 answers | 0

0

answers

Question


extract a number from 1*1 cell
I have tbl2 = 1*1 cell array {[1.29]} Name Size Bytes Class Attributes tbl2 1x1 ...

3 years ago | 2 answers | 0

2

answers

Question


How to round a result to two decimal places, Part 2
https://www.mathworks.com/matlabcentral/answers/308927-how-to-round-a-result-to-two-decimal-places shows how to round the resul...

3 years ago | 1 answer | 0

1

answer

Question


getting a specific column from a table, Part 2
https://www.mathworks.com/matlabcentral/answers/248838-getting-a-specific-column-from-a-table tells T{:,1} as a way to speci...

3 years ago | 1 answer | 0

1

answer

Question


fitlm when there are many independent variables
https://www.mathworks.com/help/stats/fitlm.html shows, when one has a small number of independent variables, it is possible to ...

3 years ago | 1 answer | 0

1

answer

Question


Can the script detect the version of MATLAB on which the script run?
I write a script that depends on a new feature of R2020b. But other people may not have R2020b. Is it possible to write such as ...

3 years ago | 2 answers | 0

2

answers

Question


where can I find a path of a function that matlab accessed?
I wrote a function 'test.m'. I called the function from Livescript test(x,y) How can one find the directory of test.m?

3 years ago | 1 answer | 0

1

answer

Question


What kind of join will work to merge these two tables
I have table T1 date city vistors --------------------- January 1 2020 NY 100 January 2 2020 NY 200 January 1 2020 SF 150 ...

3 years ago | 1 answer | 0

1

answer

Question


Sort categorical variables in an alphabetical order
I have a set of categorical variables A = {'NY','Boston'} How can one sort A to B as B = {'Boston','NY'} I tried sort but ...

3 years ago | 1 answer | 0

1

answer

Question


word wrap in Matlab Live Editor
How can one have a word wrap in Matlab Live Editor?

3 years ago | 1 answer | 2

1

answer

Question


sum two variables ignoring NaN
I have table T Var1 Var2 -------------- 1 NaN NaN 2 I want to add var1 and var2 ignoring NaN: sum --- 1 2

3 years ago | 2 answers | 0

2

answers

Question


Merge two tables and merge variables (other than the key variables) also
I have table T1 Date City Visitors ------------------ January 1 2020 NY 100 January 2 2020 NY 200 and Date City Visitors ...

3 years ago | 0 answers | 0

0

answers

Question


How to let Matlab fill in different date, string, and numbers in a table
Suppose I have table T1 Date City Vistors ------------------ January 1 2020 NY 100 January 2 2020 NY 110 and table T2 Date...

3 years ago | 0 answers | 0

0

answers

Question


What is a good way to see the data type of variables in a table?
I have a table with variables. Is there any function that allows me to see the data type of all variables in a table?

3 years ago | 1 answer | 0

1

answer

Question


Add/Augument timetable with additional date
I have a timetable T1 like date visitors -------------------------------------- January 1 2020 ...

3 years ago | 0 answers | 0

0

answers

Question


From discrete dates to continuous dates (revised)
I have a timetable T like city date visitors ----------------------- NY January 1 2020 100 NY January 5 2020 40 NY Janua...

3 years ago | 1 answer | 0

1

answer

Question


How to take a difference within the data of the same city but not across the city, Part 3
I have a table City Date Cumulative_Visitors ----------------------- NY January 1 100 NY January 2 150 NY January 3 200 ...

3 years ago | 1 answer | 0

1

answer

Question


How to take a difference within the data of the same city but not across the city, Part 2
Suppose I have table T City Date Cumulative_Visitors ----------------------- NY January 1 100 NY January 2 150 NY January ...

3 years ago | 1 answer | 0

1

answer

Question


How to take a difference within the data of the same city but not across the city
Suppose I have a dataset City Date Cumulative_Visitors ----------------------- NY January 1 100 NY January 2 150 NY Januar...

3 years ago | 1 answer | 0

1

answer

Question


Difference between 'cell' and 'string'
I readtable two csv files that both includes months (January, February,...). In one file, they are string. In the other file, th...

3 years ago | 2 answers | 0

2

answers

Question


Can one substitute string values in a matrix?
I create dum=zeros(height(T),1) I want Matlab to fill all the values of dum with a string 'January'. How is it possible?

3 years ago | 1 answer | 0

1

answer

Question


Add a matrix of strings
% Add a matrix of zeros to host the dummy variables dum=zeros(length(Month),length(set_of_month)); T=[table(Month) array2table...

3 years ago | 1 answer | 0

1

answer

Question


Date and Time from Text with Literal Characters, Part 3
To follow up with https://www.mathworks.com/matlabcentral/answers/683318-date-and-time-from-text-with-literal-characters-part-2?...

3 years ago | 1 answer | 0

1

answer

Question


Date and Time from Text with Literal Characters, Part 2
I now have a table Date Visitors 'Jan 1 2020' 100 'Jan 2 2020' 50 I want Matlab to convert the string 'Jan 1 2...

3 years ago | 1 answer | 0

1

answer

Question


Can one let Matlab to remove lines of the spreadsheet before the data?
I have a spreadsheet "visitors.xlsx" like title of the spreadsheet: daily visitors source: state date visitors January 1 202...

3 years ago | 1 answer | 0

1

answer

Question


Define a set of independent variables for fitlm
Suppose I have a table T with labels visitors price proxy_January proxy_February proxy_March I want to run a regression visit...

3 years ago | 1 answer | 0

1

answer

Question


fitlm works but polyfit does not work
I run polyfit and fitlm for the same data. fitlm provides an output. But polyfit and corrcoef return NaN. How can it be?

3 years ago | 1 answer | 0

1

answer

Load more