Réponse apportée
Linear model fit error
Use the transpose operator on x1, x2, x3 and y so that these are column variables, like this for x1: x1 = [7 8 7 8 7 8 7 8 7 8 ...

plus de 5 ans il y a | 0

Réponse apportée
Randi Error- Array exceeds max array size preference
This looks wrong: OOK=randi(1,sig_length); The first parameter (here, 1) is the maximum random integer (the minimum is 1). Si...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
repeated measure anova two options
Not sure but I think you need T = table([1 2]','VariableNames',{'Time'}); T.Time = categorical(T.Time); % add this line Mayb...

plus de 5 ans il y a | 0

Réponse apportée
What kind of join will work to merge these two tables
Try T3 = join(T1,T2,'Keys','City')

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
derive new variable with random float values using for loop
Despite your comments, I guess you want 0-1 for the second option, not 0-2. I guess you want all numbers in the range to be equ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plot best-fit Spearman rank correlation curve
Tricky question, because the whole point of the Spearman correlation is that the x/y relationship might be nonlinear. Maybe use...

plus de 5 ans il y a | 0

Réponse apportée
fitting a Gaussian curve convoluted with exponential decay
It sounds like you want what is often called the "ex-Gaussian" distribution. Its density function is on Wikipedia. Cupid will ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
get discrete pdf/pmf from a kernel distribution pdf on an interval
myFitTrunc = truncate(myFit1,4,12) % 4, 12 are example lower,upper truncation bounds Y = random(myFitTrunc,500,1) histogram(Y...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Optimising Monte Carlo simulation
Some suggestions--hopefully not a waste of your time: Use the profiler to find out where time is spent, so you can focus your s...

plus de 5 ans il y a | 1

Réponse apportée
RMSE plot of Monte Carlo simulation
RMSE is not supposed to decrease with the number of iterations, but it should stabilize. Your plot oscillates because each poin...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Outliers in ANOVA and multcompare
Yes, outliers are included. (Scores are considered outliers only for the purposes of the boxplots.) The way you can tell is tha...

plus de 5 ans il y a | 1

Réponse apportée
Average of Column Values with Condition
if your data are in a table, maybe you can use grpstats something like this: tbl.IntDepth = trunc(tbl.depth); % assuming depth...

plus de 5 ans il y a | 0

Réponse apportée
2-way-anova with balance over subjects
Look here for an explanation of how to do a repeated measures ANOVA with the same 2x2 within-Ss structure.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to choose a sample of these input permutations?
Here's one possibility: Start by making a histogram of the "Difference in VAF" (DVAF) scores. Divide this histogram into k equ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Defining class methods in the "deeper levels" of a class
A toy example might be needed to make it clearer what you are after, but I guess you want a class A which has as two of its prop...

plus de 5 ans il y a | 0

Réponse apportée
Kahneman's Taxi problem
Generate a cab of one color or the other with the appropriate probabilities. Get the color ID response from the witness with th...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Generate a random matrix with 4 specifik values
maybe this? j = 2.5; % insert whatever value of j you want to use vals = [1,-1, j, -j]; pos = randi(numel(vals),15,10^5); r...

plus de 5 ans il y a | 0

Réponse apportée
Error when running a repeated measures ANOVA
I'm pretty sure fitrm expects all of the data from a single patient to be on one row of the input data table (e.g., words)--at l...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Error when calling a jupyter notebook file from matlab
Just guessing here, but given that it is a file not found error, maybe you need to specify the path to the input file, something...

plus de 5 ans il y a | 0

Réponse apportée
Several questions regarding distributions
I don't know that there are definitive answers to any of your questions, but here are some thoughts: > most of these distributi...

plus de 5 ans il y a | 1

Réponse apportée
Multiple functions inside one .m file
Try the method involving static classes, as explained here by per isakson

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Removing highest and lowest 5% of data as outliers using prctile
% Data values are in X; X2 holds remaining values after outliers removed Y = prctile(X,[5,95]); X2 = X(X>Y(1) & X<Y(2)); % ma...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Compare Fit of two linear models
A quick and dirty solution is to form a new variable S=IV1+IV2; and then compare the fit of the model 'DV~S' to the model 'DV~...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Alternative for two way anova
One option is to ignore the problem and do ANOVA despite the non-normality. ANOVA is pretty robust with respect to normality vi...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I fit a flexible distribution to a set of percentiles?
A normal distribution fits very well: see attached for a figure and the matlab code to generate it. There is no obvious skew (5...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting a line representing Spearman's correlation on a scatterplot
I'm not sure a mismatch between slope and correlation is necessarily a problem. Note that the slope doesn't equal the correlati...

plus de 5 ans il y a | 0

Réponse apportée
How to exclude data when fitting an exponential distribution
You can make use of the memory-less property of the exponential here--the mean remaining time is independent of how much time ha...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Can MATLAB Handle a Triple Nested Struct?
Haven't tried it, but it seems like this should work: for i = 1:length(Calendar) for j=1:12 Calendar(i).Month(j)....

plus de 5 ans il y a | 1

Réponse apportée
setting up a nested data structure
Your information architecture diagram doesn't look quite right. For example, your [Females] should be a structure that holds hei...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Distribution Fitting Tool - finding of best fitting distribution type
It depends on exactly what you mean by "best fitting curve". In general, there is certainly no guarantee that the best-fitting ...

plus de 5 ans il y a | 0

| A accepté

Charger plus