Question

boxplot at uneven spacing

Just consider the following example, which I have taken from here. rng('default') % For reproducibility x1 = rand(5,1); x2 =...

3 days ago | 0 answers | 0

Question

logical operators on a logical matrix

Consider the following logical matrix of 4X2 A = logical([1, 0; 1, 1; 0, 0; 0, 1]) I would like to apply logical operator (sa...

2 months ago | 1 answer | 0

Question

Does matlab support fullscreen?

'F11' is usually a shortcut for fullscreening in most of the softwares, like Chrome, Spyder, etc. However, search for fullscrine...

2 months ago | 1 answer | 0

Question

CapSize for a customized errorbar plot

I am writing a customized errorbar for myself. But I do not know how to control the CapSize, like it is controled in the default...

3 months ago | 1 answer | 0

Question

making `errorbar` work with `datetime`

I would like to plot errorbar with datetime on x-axis x = datetime(['21-Aug-2019'; '22-Aug-2019'; '23-Aug-2019']); y = [100; 1...

3 months ago | 2 answers | 0

Question

Using normpdf with datetime datatype

I have a vector of time in datetime datatype. I would like to calculate the Normal pdf by giving arguments in datetime datype. n...

3 months ago | 1 answer | 0

Question

set size of axes in cms

I have a figure containing four subplots. I want to set the height and width of axes either in cm or in pixels. Can it be done?...

11 months ago | 2 answers | 0

Question

line vs plot: Multiple axes

I tried the example code for *Creating Chart with Multiple x-Axes and y-Axes* from this link. The code is as follows: figur...

1 year ago | 0 answers | 0

Question

Why this error with `axis`

>> axis('limits',[0 60 0 50 0.13 0.23],'style', 'square') The above produces following error error- Error using axis...

1 year ago | 2 answers | 0

Answered

How to remove whitespace around subplot figures?

The reason is, it requires |'ActivePositionProperty'| property of |axes| set to |'outerposition'|. By default, subplots have an...

How to remove whitespace around subplot figures?

The reason is, it requires |'ActivePositionProperty'| property of |axes| set to |'outerposition'|. By default, subplots have an...

1 year ago | 0

Answered

Automatically remove white space from figure

This may help you: <https://in.mathworks.com/help/matlab/creating_plots/save-figure-with-minimal-white-space.html>

Automatically remove white space from figure

This may help you: <https://in.mathworks.com/help/matlab/creating_plots/save-figure-with-minimal-white-space.html>

1 year ago | 2

Question

Declaring plot arguments/options beforehand

I would like to declare arguments of plot function once and beforehand, so than I can use them in a loop or for many plots, whi...

1 year ago | 1 answer | 0

Question

Passing more arguments to `nlinfit` function

I am in interested in passing extra arguments to |nlinfit| function in Matlab beta = nlinfit(X,Y,modelfun,beta0) and let...

1 year ago | 1 answer | 0

Question

Already Saved Subplots to subplots including title and labels

I am trying to reproduce already saved figures (.fig) to subplots in new figure I have tried the following code which I have fou...

2 years ago | 1 answer | 0

Question

xlabel and ylabel is not visible in surf plot

When I 3D plot using |surf()| and try to rotate using |Rotate 3D| tool, my xlabel and ylabel gets disappeared. This happens freq...

2 years ago | 1 answer | 0

Question

LogLikelihood for Gaussian Process regression (function: `fitgpr`) for given set of hyperparameter

I am interested in calculating LogLikelihood using Gaussian Process for given hyperparameters and noise parameter i.e. without...

2 years ago | 1 answer | 0

Question

Create timeseries from timeseries

I have a quick question to ask. I would like to create a timeseries from a timeseries object but with given data columns. (Sa...

2 years ago | 1 answer | 0

Question

Plotting selected data from time series

Say |ts| is a <https://in.mathworks.com/help/matlab/ref/timeseries-class.html timeseries object> with three data colums. Storing...

2 years ago | 1 answer | 1

Question

Estimates from Gaussian Process regression (function: `fitgpr`) for given set of hyperparameter

I am interested in estimating _y_ using Gaussian Process for given hyperparameters and noise parameter i.e. without optimizing f...

2 years ago | 1 answer | 0

Question

Converting cell to 3 dimensional matrix

I have a cell of size [1, 50] each of it is 11 x 2 matrix. I would like it to convert it to a 3-d matrix of size 11 X 2 X 50....

2 years ago | 1 answer | 0

Question

Clarification regarding text in figure

I have a quick question: I was trying to get text on a figure, kindly consider the following: t = linspace(0,2*pi,50); ...

3 years ago | 1 answer | 0

Question

Copy XLabel from axes: R2014a

Hello I was trying to copy xlabel text from one axes to another with following code. What I exactly want is *XLabel* of |a1...

3 years ago | 1 answer | 0

Answered

Sendmail authentication error with gmail

For some service providers the extension _' @gmail.com_' in _myaddress_ may cause authentication error. Simply use userID.

Sendmail authentication error with gmail

For some service providers the extension _' @gmail.com_' in _myaddress_ may cause authentication error. Simply use userID.

3 years ago | 0

Question

Generating truncated Normal random and pdf using makedist with fixed sigma.

I am finding it difficult to even describe my doubt may be someone get a clue from the code. I want to generate <http://in.mathw...

3 years ago | 0 answers | 0

Question

Doubt in declaring a function

I have a doubt regarding declaration of a function, kindly conside the following code fun = @GVF sqrt_estimt = fminsea...

4 years ago | 1 answer | 0

Question

Estimating parameters of ODE using ode45 and fminsearch

Hello all I am trying to estimate parameters of Ordinary Differential Equations (ODE). I am receiveing the following error: ...

4 years ago | 1 answer | 0

Question

Better visual quality of formula in Publishing

Published a .m file converts LaTeX formulas to .png, which looks blurry in browsers and especially on zooming. Is there a good w...

4 years ago | 0 answers | 0

Question

Better visual quality of formula in Publishing

Published a .m file converts LaTeX formulas to .png, which looks blurry in browsers and especially on zooming. Is there a good w...

4 years ago | 0 answers | 0

Question

Error in Publishing a code.

Consider the following code, this produces a error while publishing. Any idea why? %% Gaussian kernel function % Some ...

4 years ago | 1 answer | 0

Question

How to remove a specific script/function from path?

I use to work with a function named isdiag(), but from R2014a, Matlab has that function as built-in which is causing name confli...

4 years ago | 2 answers | 1