Answered
pause function doesn't work R20a
Is it possible that another pause function was defined? When do you get from typing which pause -all in the command window?

2 years ago | 0

Answered
Remove data in figure after plot
Similar to @Dyuman Joshi's answer, you can make the line "invisible", rather than deleting: x = 0:0.01:10; %5 curves y1 = 1...

2 years ago | 0

| accepted

Answered
How can i write a function similiar to randi for MATLAB v 2007b?
I'm not absolutely certain it will have all the properties of randi, but I think you should be able to use ceil(imax*rand()) in ...

2 years ago | 1

Answered
Random numbers generation based on specific distribution function, then sort in specific way
There are many ways to generate random numbers in MATLAB. To write to Excel, you can use writetable. Do you need the highest n...

2 years ago | 1

Answered
updating tiledlayout in a loop - "Invalid or deleted object"
Put a hold on call after each of your nexttile commands, to prevent the second plot of each tile from replacing the first one ...

2 years ago | 0

Answered
find probability of some data
data = [2 3 5 7 11 13 17]; constant = 6; probabilityDataLessThanConstant = mean(data<constant)

2 years ago | 0

Answered
Posthoc (planned) comparisons as contrasts between different levels of a regressor, in fitlme
I'm not certain you can fit the model you want in MATLAB, but I think your best bet is to fit a generalized linear mixed effects...

2 years ago | 1

Answered
Create the matrix with aligned dates
load SyncronizedData.mat for nc = 2:width(J) [tf,loc] = ismember(J(:,nc),J(:,nc-1)); tmp = J(:,nc); J(:,nc) = ...

2 years ago | 1

Answered
What causes strange behavior of subtracting?
This explained by the limitations of floating-point arithmetic.

2 years ago | 0

| accepted

Answered
Multioutput Regression models in MATLAB
The only MATLAB function (that I know of) that can handle multiple response variables is mvregress. Take a look at my answer her...

2 years ago | 0

Answered
how know size of field struct
That command will give an error for some values of Sis.D, and not for others. Regardless, I don't think it will do what you expe...

2 years ago | 0

Answered
Save and load variable
Your question title just says "variable", but your question itself asks about databases. Assuming you actually mean database acc...

2 years ago | 0

Answered
how study matlab 2023a
There are many possible ways to learn MATLAB. A good starting point is the free MATLAB Onramp tutorial.

2 years ago | 0

Answered
comparison between a string/or cell and categorical data
Your method works for me: Trading = categorical({'As is';'bla'}); B='As is'; B == Trading(1) You did have a lower-case "b"...

2 years ago | 0

Answered
I can't draw the vector field
The problem is the Inf values in u and v. Removing them: [x, y] = meshgrid(-0.9:0.3:0.9, -0.9:0.3:0.9); R1 = (x.^2 + y.^2).^.5...

2 years ago | 0

Answered
3D Histogram of 50x50 data
You can make this style of plot using the histogram2 function.

2 years ago | 0

| accepted

Answered
Variables corresponding with NaN won't graph
Without seeing your code or your data, it is difficult to give specific advice. But the gist would be something like this: iden...

2 years ago | 1

Answered
cross-correlation of multivariate data to differnt lag numbers
Try the xcorr function.

2 years ago | 0

Answered
Predictor and Response Variables must have same length error
fitnlm expects column vectors as input, not row vectors. Rows are the observations, and columns are variables. y = [0 0 ...

2 years ago | 1

| accepted

Answered
Plotting different sized vectors
Here is one way. If you have many participants, I would generalize this a bit differently (e.g. by storing participant vectors i...

2 years ago | 0

| accepted

Answered
Help with principal component analysis of FTIR spectra
Frankly, I don't see why you would use PCA for this analysis. I expect there are some specialized statistical tests for determin...

2 years ago | 0

Answered
Retime function creates new rowtimes going back to 1899
You have a few dates from 1899 in your input data load CO2_TT.mat [minDateTime,indexToMinDatetime] = min(CO2_TT.DateTime) C...

2 years ago | 0

| accepted

Answered
How to create curved arrows by giving tail and head coordinates?
It looks like the circular_arrow submission in the File Exchange might do what you want. I suggest downloading that function and...

2 years ago | 1

| accepted

Answered
How can i find indices of constant elements between 2 arrays?
Do you mean the non-zero elements that are the same between the two arrays? A = [1 2 0; 0 1 0; 5 0 8]; B = [1 3 0; 0 4 0; 5 0 ...

2 years ago | 0

| accepted

Answered
how to find average curve of n curves? n=3 in this case
Here is how to get at the underlying data, from the figure file. open("fig3b_XveKu_7.9%_S_parameters_VNA_CST_S21.fig") h = f...

2 years ago | 0

Answered
Extracting from boxchart function the median, quartiles, and whisker data.
As you may know, but just in case you do not, there is also the boxplot function, which has more flexibility than boxchart.

2 years ago | 1

Answered
How can I save "alpha" and "beta" parameters as double using fitdist command?
I'm not sure what part is giving you trouble. Here is how to pull the parameter values out of the distribution object. (The full...

2 years ago | 0

| accepted

Answered
What does this command line mean? (matrix A =[A t])
Square brackets can be used to concatenate arrays.

2 years ago | 0

Answered
Send Emails from GUI
I don't know the answer to your question, but you might have better luck using the MATLAB-supplied sendmail function, rather tha...

2 years ago | 0

Answered
Multiply column by a number
Here is one way: varList = ["Var7","Var8","Var9"]; tbl{:,varList} = tbl{:,varList}*15;

2 years ago | 0

Load more