Beantwortet
How do I get four different answers guaranteed generated randomly from several arrays?
One way is to put the two random selections inside a while loop, check whether any meals are repeated, and then only exit the lo...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to load .mat data from another folder?
You need the folder name at the beginning of the string you pass to load, maybe something like this: for iFile = 1:numel(N1) ...

mehr als 4 Jahre vor | 1

Beantwortet
Probplot for Generalized Extreme Value distribution
Cupid includes the Frechet distribution. It doesn't have probplot function, but you can easily produce something similar: % as...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to NOT share variable with nested function?
It sounds like your "big code" is a script rather than a function, but now you want to make a function out of it. I suggest you...

mehr als 4 Jahre vor | 0

Beantwortet
How to plot confidence bounds for a theoretical cumulative distribution function?
For a given X value, the theoretical cumulative probability is p = F(X). Suppose you have a sample of N observations and you le...

mehr als 4 Jahre vor | 0

Beantwortet
How to loop through variable names and to save them on one file?
You can use strings for variable names like this: a = 'WD__Avr'; for.... [...] x = mean(data_measured.(a)(ind_time)); % no...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
I need a quantitative method of identification of which distribution best represents my data set
One approach is to: get the maximum likelihood parameter estimates for fitting each candidate distribution to your actual data....

mehr als 4 Jahre vor | 0

Beantwortet
How can I test for significance between expected and observed outcomes?
Another alternative: You might consider that you have three classes of items: those for which the predicted correlation was posi...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
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:...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 0

Beantwortet
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...

fast 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 0

Beantwortet
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})

fast 5 Jahre vor | 0

Beantwortet
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...

fast 5 Jahre vor | 0

Beantwortet
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...

fast 5 Jahre vor | 2

Beantwortet
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.

fast 5 Jahre vor | 0

Beantwortet
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 ...

fast 5 Jahre vor | 1

Beantwortet
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...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 2

| akzeptiert

Beantwortet
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; %...

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

Beantwortet
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...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 5 Jahre vor | 2

| akzeptiert

Mehr laden