Réponse apportée
Why won't datetime work for 0:00?
It's not easy to debug this without seeing the data, but I would suggest explicitly adding a 'Format' Name-Value input to this l...

plus de 3 ans il y a | 2

Réponse apportée
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?

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
find probability of some data
data = [2 3 5 7 11 13 17]; constant = 6; probabilityDataLessThanConstant = mean(data<constant)

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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) = ...

plus de 3 ans il y a | 1

Réponse apportée
What causes strange behavior of subtracting?
This explained by the limitations of floating-point arithmetic.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

Réponse apportée
how study matlab 2023a
There are many possible ways to learn MATLAB. A good starting point is the free MATLAB Onramp tutorial.

plus de 3 ans il y a | 0

Réponse apportée
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"...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
3D Histogram of 50x50 data
You can make this style of plot using the histogram2 function.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
cross-correlation of multivariate data to differnt lag numbers
Try the xcorr function.

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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.

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

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

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Charger plus