Question


How to Run Matlab in Jupyter in VS Code
https://code.visualstudio.com/docs/python/jupyter-support shows how to run Jupyter notebook in VScode. So it should be able to ...

9 months ago | 1 answer | 0

1

answer

Question


format of an output of a function
Suppose A is 100*1 categorical and B is 100*1 categorical . As I run ismember(A,B), output is like ans = 100*1 logical array ...

9 months ago | 1 answer | 0

1

answer

Question


comparing categorical arrays in terms of content
I have two categorical arrays A and B. I want to idenitfy common elements of A and B elements that are in one of them but not...

9 months ago | 1 answer | 0

1

answer

Question


read csv file: variable name consists of multiple words: resulting table variable name
I readtable a csv file of the format date new york --------------------- 1/1/2021 15 1/2/2021 20 Then the resulting tabl...

9 months ago | 1 answer | 0

1

answer

Question


Print first few lines of output
Suppose I do summary(T) Then it will print out statistics of all the variables in the table, which is good. But at the same ti...

9 months ago | 1 answer | 0

1

answer

Question


Reformatting columns and rows of a table
Suppose I have a table date NY Chicago SF --------------------------- 1/1/2020 10 15 20 1/2/2020 15 20 10 I want to refo...

9 months ago | 1 answer | 0

1

answer

Question


Run regressions and output the result as a report using "Report Generator"
I run regressions such as fitlm(T.population, T.sales) I want to output a report that explains these regression equations and...

9 months ago | 1 answer | 0

1

answer

Question


Define a collection of variables
Suppose I have a table date visitor city dummy_for_January dummy_for_February dummy_for_March --------------------------------...

9 months ago | 2 answers | 0

2

answers

Question


Long output in Livescript
For example, when I run fitlm with a large number of independent variables, outputs are displayed in its own window and one need...

10 months ago | 1 answer | 0

1

answer

Question


suggestion: please put an option to display variable data type in head function
head function allows the display the first rows of table that is very convenient. https://www.mathworks.com/help/matlab/ref/ta...

10 months ago | 1 answer | 0

1

answer

Question


'summary' function for a cell
summary function provides a summary of a content of a table https://www.mathworks.com/help/matlab/ref/table.summary.html Then ...

10 months ago | 1 answer | 0

1

answer

Question


Matlab, automatically delete the index variable after the execution of a loop, Part 2
https://stackoverflow.com/questions/9850628/matlab-automatically-delete-the-index-variable-after-the-execution-of-a-loop suppos...

10 months ago | 1 answer | 0

1

answer

Question


a simpler way to add a string variable to a table
I have a table T Date City Visitors ---------------------- 1/1/2020 New York 10 1/2/2020 New York 20 I want to add a variab...

10 months ago | 1 answer | 0

1

answer

Question


refreshdata, clf, "clear all output"
What are the relationship of refreshdata https://www.mathworks.com/help/matlab/ref/refreshdata.html clf https://www.mathworks...

10 months ago | 1 answer | 0

1

answer

Question


fitlm okay but warnings for anova
I run tbl=fitlm(x,y) and it does not have any error message. But when I do anova(tbl) I get an error message warning: Mat...

10 months ago | 1 answer | 0

1

answer

Question


polyfit with multiple dependent variables
I think https://www.mathworks.com/help/matlab/ref/polyfit.html can handle multiple dependent variables. But when I tried Fit...

10 months ago | 2 answers | 0

2

answers

Question


Setting plot limits with dates, Part 2
https://www.mathworks.com/matlabcentral/answers/84008-setting-plot-limits-with-dates I belive I have set the xlim to start from...

10 months ago | 1 answer | 0

1

answer

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...

10 months 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 ...

10 months 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?

10 months 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...

10 months 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 ...

10 months 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...

10 months 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...

11 months 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 ...

11 months 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 ...

11 months 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?

11 months 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 ...

11 months 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 ...

11 months ago | 1 answer | 0

1

answer

Question


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

11 months ago | 1 answer | 0

1

answer

Load more