답변 있음
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...

거의 3년 전 | 2

답변 있음
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?

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 0

| 수락됨

답변 있음
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 ...

거의 3년 전 | 1

답변 있음
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...

거의 3년 전 | 1

답변 있음
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 ...

거의 3년 전 | 0

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

거의 3년 전 | 0

답변 있음
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...

거의 3년 전 | 1

답변 있음
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) = ...

거의 3년 전 | 1

답변 있음
What causes strange behavior of subtracting?
This explained by the limitations of floating-point arithmetic.

거의 3년 전 | 0

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
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...

대략 3년 전 | 0

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

대략 3년 전 | 0

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

대략 3년 전 | 0

답변 있음
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"...

대략 3년 전 | 0

답변 있음
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...

대략 3년 전 | 0

답변 있음
3D Histogram of 50x50 data
You can make this style of plot using the histogram2 function.

대략 3년 전 | 0

| 수락됨

답변 있음
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...

대략 3년 전 | 1

답변 있음
cross-correlation of multivariate data to differnt lag numbers
Try the xcorr function.

대략 3년 전 | 0

답변 있음
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 ...

대략 3년 전 | 1

| 수락됨

답변 있음
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...

대략 3년 전 | 0

| 수락됨

답변 있음
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...

대략 3년 전 | 0

답변 있음
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...

대략 3년 전 | 0

| 수락됨

답변 있음
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...

대략 3년 전 | 1

| 수락됨

답변 있음
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 ...

대략 3년 전 | 0

| 수락됨

답변 있음
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...

대략 3년 전 | 0

답변 있음
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.

대략 3년 전 | 1

답변 있음
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...

대략 3년 전 | 0

| 수락됨

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

대략 3년 전 | 0

답변 있음
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...

대략 3년 전 | 0

더 보기