Question

Using the cpsd function

Dear everyone, I have some data that was collected at a sampling rate of 200 sample/second. However, I want to calculated the...

4 månader ago | 1 answer | 0

Question

Chi-squared for multiple groups

Dear all I have data on gender (male/female) for 4 groups that I would like to compare. I found this previous post that s...

4 månader ago | 2 answers | 0

Question

Fill line with colors using the heatmap

Hey everyone, I'm currently trying to use the function: plot to create af figure similar to this: Does anyone know h...

mer än ett år ago | 1 answer | 0

Question

Remove repeated numbers in series

Hi everyone, I have a sequence of number like x = [3 3 3 3 3 2 2 2 2 2 2 2 1 1 1 1 3 3 3 3 3 3]; And I would like to reduce ...

ungefär 2 år ago | 2 answers | 0

Question

Comparing two groups using aoctool - p-value for comparison?

Hi everyone, I've been trying to use aoctool to compare two groups with one covariate as follows: [h,atab,ctab,outstats]...

nästan 3 år ago | 0 answers | 0

Question

Create sine wave with noise within 10-20 Hz

Hi everyone, I would like to create a sine wave with noise within a narrow spectrum (10-20 Hz). Is it possible to create a si...

mer än 3 år ago | 1 answer | 0

Question

Using aoctool in the right way

Hi everyone, I'm interested in using aoctool for some calculations but I can't find that much documentation for the function....

mer än 3 år ago | 1 answer | 0

Question

Export number with fewer decimals and a number in parentheses

Hi everyone, I currently have the following number in a 8x4 double. I want to turn this number: -0.6100 to the following: -0....

mer än 3 år ago | 1 answer | 0

Question

normr - part of toolbox?

Hi everyone, I've been trying to run a script, which uses a function called normr. Is normr a part of the neural networks to...

mer än 3 år ago | 1 answer | 0

Question

Error using glmfit: Second column in Y?

Hi everyone, I'm currently trying to use glmfit like this: B2 = glmfit(x(c,:),y,'binomial'); With y being a n x 1 ma...

nästan 4 år ago | 2 answers | 0

Question

Any MATLAB functions for prediction index and Brier score

Hi everyone, I have 3 groups (group A, B, and C) and I've performed logistic regression between group A&B, and A&C. My outcom...

ungefär 4 år ago | 1 answer | 0

Question

Replace 1's with 0's if there is less that five 1's between 0's in vector

Hi everyone, I want to replace 1's with 0's if there are less than five 1's between the zeros in a large vector. For example,...

ungefär 4 år ago | 1 answer | 0

Question

Loop in cell array

Hi everyone, I'm currently trying to add a number in the end of a filename like this: for jj = 1:244 names(jj) = c...

ungefär 4 år ago | 1 answer | 0

Question

Speed-Accuracy Tradeoff calculations in MATLAB

Hi everyone, I was wondering if anyone knows if there already is code or a toolbox in MATLAB for calculating speed-accuracy ...

mer än 4 år ago | 3 answers | 0

Question

Conversion from char to matrix

Hi everyone, I've a char array that looks like this: numb = [2:4 6:2:12 17 25 26:28 35 37 38:41 46] Is there a way ...

mer än 4 år ago | 1 answer | 0

Question

Problems loading ascii file (.b00)

Hi everybody, I have had some trouble loading ascii files ending in (.b00). When I write the following: S = load('test.b...

mer än 4 år ago | 0 answers | 0

Question

How can I add ' ' to each number in a column?

Hi everybody, I have a struct containing names and a number in two separate columns (like findings.labels and findings.number...

mer än 4 år ago | 2 answers | 0

Question

What type of multiple comparisons is used in multcompare?

Hi everybody, I've used the following function after performing Kruskal Wallis test: c = multcompare(KW_stats(1,1).name)...

mer än 4 år ago | 1 answer | 0

Question

Use covariates when performing repeated measures ANOVA

Hi everybody, Is there a way in MATLAB to add covariates to a repeated measures ANOVA like in SPSS? Like gender, age, task or...

mer än 4 år ago | 0 answers | 1

Question

Import .b00 file into matlab

Hi everybody, I have a file containing signal from a study in the format of .b00 and I would like to import it to MATLAB. Doe...

mer än 4 år ago | 0 answers | 0

Question

Kruskal Wallis test using Matlab - unequal sample sizes

Hi everybody, I'm currently trying to perform Kruskal Wallis test comparing 3 groups with unequal sample size. Does anyone kn...

nästan 5 år ago | 1 answer | 0

Question

MATLAB function to perform an unbalanced anova

Hi everybody, I'm trying to do an 2-way repeated measures ANOVA with uneven number of subjects in each group (more pre than p...

ungefär 5 år ago | 1 answer | 0

Question

Create a black line in imagesc plot

Hi everybody, I've created a 15x15 plot with the boxes showing different colors ranging from dark blue to dark red depending...

mer än 5 år ago | 2 answers | 0

Question

Color ranging from blue, green, and red using fill

Hey everybody, Does anyone know how to plot colors ranging from blue (-1) - green (0) - red (+1)? I'm currently only able to ...

mer än 5 år ago | 2 answers | 0

Question

How to plot multiple boxes with x and y being names

Hi everybody, Does anyone know how to plot graphs like: <http://people.sc.fsu.edu/~jburkardt/m_src/box_plot/clay.png> ? With ...

mer än 5 år ago | 1 answer | 0

Question

Notch filtering between 45 and 55Hz?

Hi everybody, I'm wondering whether it is an advantage to notch filter the line noise from 45Hz to 55Hz? Or is it enough to j...

nästan 6 år ago | 1 answer | 0

Question

Overlap in the mscohere function

Hi everybody, I'm calculating the magnitude-squared coherence for signals like: [Cxy,F] = mscohere(xdata,ydata,[],noverl...

nästan 6 år ago | 0 answers | 0

Question

Theoretical: Why use trapz to calculate absolute power?

Hi everybody, This more of a theoretical question and since I'm not an engineer I apologize in advance for any trouble unders...

ungefär 6 år ago | 1 answer | 0

Question

Imaginary part of mscohere

Hi everybody, Is there a way to extract the imaginary part of the coherence when using mscohere? I can't find the original co...

ungefär 6 år ago | 1 answer | 0

Question

Creating sigstar in bar graph

Hi everybody, I'm trying to create a significant star between two bars (the values 0.1423 and 0.3203) in a bar graph like: ...

ungefär 6 år ago | 1 answer | 0