Question

How can one get parameters of fitlm as an output?

I learned how to get t-statistics of fitlm by https://www.mathworks.com/help/stats/fitlm.html Now, how can one get F-statistic...

7 hours ago | 1 answer | 0

Question

How can one get t-stat of fitlm as an output?

I checked https://www.mathworks.com/help/stats/fitlm.html but it does not seem to say how one can get t-stat as an output. Pl...

11 hours ago | 1 answer | 0

Question

refer to the value of a variable referenced by the value of another variable

Suppose I have a table date n_visitor n_reference_visitor ------------------------------------ January-1-202...

1 day ago | 1 answer | 0

Question

set value of a variable according to date

I have a table date seasons ---------------------------------------- 01-January-2020 02-January-20...

2 days ago | 1 answer | 0

Question

Set title in two lines with different font sizes, Part 2

https://www.mathworks.com/matlabcentral/answers/442076-set-title-in-two-lines-with-different-font-sizes-with-interpreter-latex ...

2 days ago | 1 answer | 0

Question

Why is it that Matlab has so many data types?

https://www.mathworks.com/help/matlab/data-types.html list many data types for Matlab. Why is it that they developed so many da...

2 days ago | 2 answers | 0

Question

Break title into multiple lines? Part 2

https://www.mathworks.com/matlabcentral/answers/26174-break-title-into-multiple-lines shows title({'You can do it','with a ce...

2 days ago | 2 answers | 0

Question

How can I include an equation in a scatter plot with linear regression line? Part 2

https://www.mathworks.com/matlabcentral/answers/64754-how-can-i-include-an-equation-in-a-scatter-plot-with-linear-regression-lin...

2 days ago | 0 answers | 0

Question

Can one save the filename as a variable in 'readtable'?

Suppose I use T=readtable('texas,csv') I want to save the name of the file (texas) as a variable. Please advise.

4 days ago | 2 answers | 0

Question

how to use "fullfile" with exportgrahics

One can use fullfile for saveas saveas(gcf, fullfile(directory, fileName),'jpeg') But when I try to use exportgraphics(gcf,...

6 days ago | 1 answer | 0

Question

Does one rename variable names after reading data? Part 2

In a previous post. I learned that "It might appear "cumbersome" to type "T." again and again, but in the long run, you will r...

6 days ago | 0 answers | 0

Question

Does one rename variable names after reading data?

Suppose I do T=readtable(test.xls) It will create variables such as T.variable1 T.variable2 It might be cumbersome to type ...

6 days ago | 1 answer | 0

Question

linear fit for dates that do not have data

Suppose I have table such as Date Visitors ------------------------------------- "January 1" 10 "January 2"...

7 days ago | 1 answer | 0

Question

Matlab livescript tab size

I would like to know how one can set the tab and indent size of livescript. I see https://www.mathworks.com/matlabcentral/answ...

9 days ago | 1 answer | 0

Question

Can one define a "directory" as a "variable"?

Suppose I want to use readtable to read a file. I understand the format readtable('C:\myFolder\myFile.xlsx') readtable('C:\my...

9 days ago | 1 answer | 0

Question

How can one extract a column based on a value of another column?

I have a two column matrix A. The first column takes a value of 0 or 1. I want to extract the elements of the second column acco...

4 months ago | 1 answer | 0

Question

How can one specify where the plot will be shown in Livescript?

I have livescript and have plot and various plot specifications. I choose "Output inline." Currently the plot is displayed after...

4 months ago | 1 answer | 0

Question

Multiple histograms and what will be the best way to put mean and std of data into a plot?

I will have three histograms in one plot histogram(A) hold on histogram(B) hold on histogram(C) I now want to get mean ...

4 months ago | 1 answer | 0

Question

create a vector of 0 and 1s that takes 1 at a fixed interval

I would like to create a vector of 0s that takes 1 at a given (m) interval. For example, if m=2, the vector will be like 0,0,1,...

4 months ago | 3 answers | 0

Question

can calculate mean but not std

I have a vector A. I can myavg=mean(A) myavg=0,3 but stDev=std(A) will give "Array indices must be postiive integers or...

4 months ago | 1 answer | 0

Question

How can one put mean and std of the data into histogram using annotation?

https://www.mathworks.com/matlabcentral/answers/303281-i-am-new-to-matlab-i-want-to-display-the-standard-deviation-and-the-mean-...

4 months ago | 2 answers | 0

Question

A function that outputs multiple plots? Part 2

In a previous question, one learned a function without output and output plots. https://www.mathworks.com/matlabcentral/answer...

4 months ago | 1 answer | 0

Question

opengl and liveeditor error

After I followed https://www.mathworks.com/matlabcentral/answers/575557-matlab-has-disabled-some-advanced-graphic-rendering-fe...

4 months ago | 0 answers | 0

Question

A function that outputs multiple plots?

Can one write a function that outputs multiple plots? https://www.mathworks.com/matlabcentral/answers/116996-how-to-write-a-fu...

4 months ago | 1 answer | 0

Question

how can one create a new color?

I create a new color (that is, a new RGB setting). How can one save it as a new color so that I do not need to type RGB each tim...

4 months ago | 1 answer | 0

Question

extract mth and m+1st largest element from a vector

maxk find the largest elements of an array. Then, is there a function that allows to extract a general mth and m+1st highest ele...

4 months ago | 1 answer | 0

Question

Matlab livescript copy and paste

I want to move, let me say, 200 lines of code in Livescript (in one section) to the end of the script (say). Is there any way be...

4 months ago | 0 answers | 0

Question

fminbnd got stock in local minimum: can global search deal with the problem defined by cases?

I plot the value of a function over the possible values and also run fminbnd. I find out that fminbud got stuck in a local minim...

4 months ago | 2 answers | 0

Question

How can one write a program to do this? (fminbnd)

I define a function function out = test(x) y=x^2; z=y+1; out=z end Then I run fminbnd(@(x) test(x),0,1) ...

4 months ago | 1 answer | 0

Question

Why is it that the breakpoint does not work?

I define some function. I set a breakpoint in the first line after the function definition statement. But when I run the program...

4 months ago | 2 answers | 0