답변 있음
Bootstrap standard errors for nonlinear least squares regression
The procedure you describe is not exactly using bootstrap methodology, at least as I understand it. In your Step 1 you say you w...

7년 초과 전 | 0

| 수락됨

답변 있음
how to compute a for cycle in copulapdf varying nu parameter from 1 to 8
Not sure if this is what you want, but it looks easy enough. Change the first line to for nu=1:8 add end as the ...

7년 초과 전 | 1

| 수락됨

답변 있음
P-value of cross-correlation
If I understand, you are looking for the tail probability of vm2 within the Pearson's r distribution. That distribution doesn't...

7년 초과 전 | 1

답변 있음
Hi everyone, I need your help on my problem
If n is more than a very small number, the sum of n of independent Ricians will be very close to normal with mean n*m and varian...

7년 초과 전 | 0

답변 있음
Retrieve a variable from a function
syms p n m b d t eqn = p == ((n-m)*((1/b)-(1/d)+ ((n-m)*t)/(n*b*d))); solve_for_n = solve(eqn,n) % Specif...

7년 초과 전 | 1

| 수락됨

답변 있음
Standard error of an Unconditional Variance?
Whenever any model parameter is estimated from random data, there is some uncertainty about the true value of that parameter. A...

7년 초과 전 | 0

| 수락됨

답변 있음
How to produce a multiple linear fittings for scatter plot?
It's not entirely clear what you have so far or what part you are having trouble with, but it sounds like you may want something...

7년 초과 전 | 0

질문


Unit testing: Check result of e.g. verifyEqual
In a unit test, I have many lines such as: verifyEqual(testCase,1.5,x); Next I would like to have an 'if' statement to e...

7년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Assign Multiple Variables
<https://au.mathworks.com/matlabcentral/fileexchange/48439-matsplit matsplit> does this.

7년 초과 전 | 3

답변 있음
Look-up table row and assign values to individual variables
Another option is to return a structure containing all the variables you want as its fields. For example, rowName = 'Joh...

7년 초과 전 | 0

답변 있음
MATLAB Class-based unit tests: How to pass in variable containing data to test
Try putting getData and afunction in a separate "methods" section--note, plain "methods", without "(Test)"--that is placed befor...

7년 초과 전 | 0

답변 있음
Implementing Welford's Algorithm (incremental variance calculation)
<https://github.com/ewiger/runstat RunStat> on GitHub seems to have a MATLAB implementation (among others)

7년 초과 전 | 0

| 수락됨

답변 있음
Issue of classification of variables in a parfor.
I'm not sure I follow this, but I think there is a problem in these lines: [gamma_opt,xit_opt]=find(eval_val==min(min(e...

7년 초과 전 | 0

| 수락됨

답변 있음
How to plot partial correlation?
The partial correlation of X and Y controlling for some other variables [Z] is the correlation of rX with rY, where rX and rY ar...

7년 초과 전 | 0

| 수락됨

답변 있음
How can i give multiple ranges for variable x within fmincon bounds or inequalities?
Have a look at John D’Errico’s fminsearchbnd and fminsearchcon. Maybe one of these will be flexible enough to do what you want....

7년 초과 전 | 0

답변 있음
How can i give multiple ranges for variable x within fmincon bounds or inequalities?
For the situation with a single x, maybe the simplest approach is to run fmincon 3 times--once with the bounds 10,30; a second t...

7년 초과 전 | 0

답변 있음
Given two probability density functions and correlation matrix, how to generate two correlated random sequences?
This question is difficult because there are lots of ways to generate sequences from different bivariate distributions that all ...

7년 초과 전 | 0

답변 있음
Why p-values are uniformly distributed when the null hypothesis is true?
This is not really a MATLAB question, but OK, I’ll have a go. First a technical detail: p values are only uniformly distribut...

7년 초과 전 | 1

| 수락됨

답변 있음
Calculation of Factorial using Recursive Relation
This might help: <https://en.wikipedia.org/wiki/Recursion_(computer_science) Wikipedia>

7년 초과 전 | 0

답변 있음
Using MLE for duration data?
Is the problem that your data are in a non-numeric datetime format? If so, you need to convert them to numbers. See <https://a...

7년 초과 전 | 0

| 수락됨

답변 있음
Generate a random variable [0,100] according to normal, weibull, and gamma distribution
Rather than truncating an unbounded distribution to lie between 0 and 100%, you might consider using an inherently bounded distr...

7년 초과 전 | 0

답변 있음
How to determine and plot a probability density function?
The discretize function will do most of the job. You may have to play around with it a bit, but something like this should work...

7년 초과 전 | 0

| 수락됨

답변 있음
Inconsistent Results w/ fitdist for Generalized Pareto
A couple of comments, though I don't think they will help you much. First, check the <https://au.mathworks.com/help/stats/pro...

7년 초과 전 | 0

답변 있음
Multi-Variable Constrained Optimization of Undefined Objective Function
You must provide an objective function in order to use MATLAB's minimization routines. If the objective function can only be co...

7년 초과 전 | 1

답변 있음
Understanding Parameter Errors in fitnlm
Wikipedia has a pretty good explanation of the <https://en.wikipedia.org/wiki/Mean_squared_error mean squared error> that fitnlm...

7년 초과 전 | 0

| 수락됨

답변 있음
How can I obtain a truncated log-Normal distribution object?
I think you can do it with <https://github.com/milleratotago/Cupid Cupid>. It would look something like this: myDist = Tru...

7년 초과 전 | 1

답변 있음
How do I generate simulated data?
It is hard to say without knowing about the structure of your data set or about exactly what you mean by "simulated data", but h...

7년 초과 전 | 1

| 수락됨

답변 있음
I have a main class which takes 2 arguments, Two arguments(Same) are coming from 2 another classes which are doing differnet computations . Now I need to define a 3rd argument which allows user to specify which class he wish to chooses .
I'm guessing main class is a parent class and sum and diff are two child classes descended from it. If that is right, the bes...

7년 초과 전 | 0

| 수락됨

답변 있음
How can I assure that the Kruskal-Wallis test work right in MATLAB?
The histograms provide very strong evidence against your assumption that the measurements are "time independent", so I think the...

7년 초과 전 | 0

답변 있음
Transform Mean and standard deviation that follow normal distribution into Mi and Sigma that follow Logarithmic normal distribution (Log-Normal)
finalmu = 550; finalsigma = 27; lnsigma = sqrt( log( finalsigma^2 / finalmu^2 + 1) ); lnmu = log( finalmu/exp(0.5*lns...

7년 초과 전 | 0

| 수락됨

더 보기