回答済み
Can one get fitted value without going to predict?
From your reference to 'predict', I'm guessing you have a vector of observed x values and you want to compute the predicted y fo...

3ヶ月 前 | 0

| 採用済み

回答済み
Optimization of multiple variables without any toolbox
If I understand the question, your basic approach seems OK but your code isn't structured quite right. I think this is closer t...

3ヶ月 前 | 1

| 採用済み

回答済み
correlation of nonlinear variables
It isn't really clear what you mean by "correlation coefficients for nonlinear variables", because an infinite number of nonline...

3ヶ月 前 | 0

回答済み
Generating and storing lists of variable lengths?
There isn't really a good solution to this type of problem with "flat file" databases, but relational databases handle it very g...

3ヶ月 前 | 1

| 採用済み

回答済み
How to linearize the nested parfor loop?
One approach is to set out all the desired pairs in advance. A crude way to do that is pairs = zeros(0,2); n = 3; for i = 1:...

3ヶ月 前 | 0

| 採用済み

回答済み
Subsets of uncorrelated features
N = 5; R = rand(N); % We will ignore the lower triangular part of this array rCutoff = 0.4; % Make a cell array that holds...

3ヶ月 前 | 1

| 採用済み

回答済み
chi2gof reports different observed values than reported
The O values printed by chi2gof are counts of the number of observations in each bin, defined by the bin edges. In this case ch...

3ヶ月 前 | 0

回答済み
How to save multiple .mat files as one .mat file?
You can load all 24 .mat files for a single day and then save all of the collected variables together as one .mat file. For exa...

4ヶ月 前 | 0

| 採用済み

回答済み
Make name in for loop and read table
I guess you have tables called ScanRec1, ScanRec2, ...? If so, you can do almost what you want by making each table a field wit...

4ヶ月 前 | 0

回答済み
How to reference a variable in a promt to the user, where the variable will change based on the input csv file
how about: fprintf('Would you like to plot %s ? (y/n)', vnames{d-1})

4ヶ月 前 | 0

回答済み
Problems using `fitdist` to Rician distribution
I'm not sure why you are getting that error message, but Rician(6.5538e-05,0.11714) looks quite good: In case you are curious...

4ヶ月 前 | 0

回答済み
OOP: Reference (subclass) enumeration names from static superclass method. Possible?
If doWork really just needs the names, maybe pass allnames as an argument of doWork, something like this: function resu...

4ヶ月 前 | 2

回答済み
Two-Way repeated Measures Anova: Pairwise comparison of multiple factor levels using Multcompar
Go back to the original data and compute the means for each group of interest, so you can compare which group mean is higher.

5ヶ月 前 | 0

回答済み
Fitting Gaussian keeping max amplitude same
One option is to fit a smoothed curve and then multiply the (smoothed, predicted) height by whatever constant is needed to make ...

5ヶ月 前 | 1

回答済み
Develop uncertainty estimates using Monte-Carlo simulation, bootstrap-resampling
You seem to be asking how to select a random subset of the years for each iteration of the simulation. If that is right, then y...

5ヶ月 前 | 0

| 採用済み

回答済み
How to interpret Repeated Measures Anova Example Table
(Intercept):Measurements is the "main effect" of measurement type--a factor with 4 levels in this example (i.e. length and width...

5ヶ月 前 | 1

| 採用済み

回答済み
PDF and CDF of rician distribution simulation source
OK, here's a more complete answer: pd = makedist('Rician','s',0,'sigma',2); % Change to your required parameters N = 1000; %...

5ヶ月 前 | 0

回答済み
PDF and CDF of rician distribution simulation source
Why can't you use this: pd = makedist('Rician')

5ヶ月 前 | 0

回答済み
how to refer variable from string name
This is pretty clumsy, but I think something like this will do what you want: varnames = {'m1_n', 'm3_n'}; % names of the vari...

5ヶ月 前 | 0

| 採用済み

回答済み
generating correlated random variables
Generate C1-C6 separately (independently) from whatever lognormal you want. Then generate C7-C8 as a pair with the desired corr...

5ヶ月 前 | 0

| 採用済み

回答済み
Stop signal task - pre error speeding
I think it would be cleanest to start by making a vector to indicate which trials precede unsuccessful stops, which can be done ...

6ヶ月 前 | 0

| 採用済み

回答済み
How to make Anova table for data from a factorial experiment
x = readtable('mack_data.txt'); x.Properties.VariableNames = {'o1','o2','o3','o4','o5','m1','m2','m3','m4','m5'}; withinDesign...

6ヶ月 前 | 2

| 採用済み

回答済み
How to create a cumulative frequency array
This is inelegant, but it works: cumFreq = zeros(size(V)); for i=1:numel(V) cumFreq(i) = sum(Z<V(i)); end

6ヶ月 前 | 1

| 採用済み

回答済み
Define a density function and draw N samples of it
I don't think that density function is right--seems like you at least need to include the mixture probabilities in there--e.g., ...

6ヶ月 前 | 0

回答済み
Function to create struct with parameters
Maybe you would like something like this? month = 1; year = 1951; day = 11; inp = CreateStruct(month,day,year) function o...

6ヶ月 前 | 0

| 採用済み

回答済み
How do I declare correlation between a random variable with beta distribution and a random variable with normal distribution?
Something like this would work, though you would have to adjust rho by trial and error to get the final corr(x1,x2) value that y...

6ヶ月 前 | 0

| 採用済み

回答済み
Extract columns into new variables efficently
A= [1 1 2 2 3 3 1 1 2 2 3 3; 1 1 2 2 3 3 1 1 2 2 3 3]; B = [10 20 30 40 50 60 70 80 90 100 110 120; 1 2 3 4 5 6 7 8 9 10 11 12]...

6ヶ月 前 | 0

| 採用済み

回答済み
Random numbers with specific sum and varying maximum
How about first picking the maximum "thismax" randomly from whatever distribution you want, and then using randfixedsum to gener...

6ヶ月 前 | 0

回答済み
Using ranova and multcompare, ranova doen't show significance (p=0.33) but multcompare shows significance between groups (p<0.001)
Note that your anova table doesn't have enough lines--there is no main effect of IndVar, just the IndVar*Time interaction (p=0.3...

6ヶ月 前 | 0

| 採用済み

回答済み
How may I show a mixture distribution?
Here is an example of plotting a mixture that produces a graph similar to yours example: pd1 = makedist('normal',1,1); % proba...

6ヶ月 前 | 1

| 採用済み

もっと読み込む