Community Profile

# Maria K

19 total contributions since 2017

View details...

Contributions in
View by

Question

add titles above distinct parts of graph
Hello! Does anyone know how to add titles above two parts of a graph and maybe also include hooks like the ones shown in the...

mehr als ein Jahr ago | 1 answer | 0

### 1

Question

bootstrap p-value
Hello! Does anyone know how to get a p-value using bootstrap? I have created a sample of 20 bootstrapped data and calculated...

mehr als ein Jahr ago | 2 answers | 0

### 2

Question

test if gamma distribution is appropriate for my data
Hello! I have some data that i want to fit to a gamma distribution and get the goodness of fit. I used the following commands:...

fast 2 Jahre ago | 0 answers | 0

### 0

Question

fit gamma distribution in barchart
Hello, is anyone acquinted with fitting gamma distributions in binocular rivalry data? If you have some matlab code in mind that...

fast 2 Jahre ago | 0 answers | 0

### 0

Solved

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

fast 2 Jahre ago

Question

replace cell array row with another cell array
Hello!! I have this cell array: trials = {'orientations', '-18', '-36', '-54', '-72', '-90', '-108' '-126' '-144' '-1...

fast 2 Jahre ago | 1 answer | 0

### 1

Solved

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

etwa 2 Jahre ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

etwa 2 Jahre ago

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

etwa 2 Jahre ago

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

etwa 2 Jahre ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

etwa 2 Jahre ago

Question

calculate something for every piece of text seperatelly
Hello! I have some text file (like the one I attached but with many more trials) and I have written a code (also attached) to ...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

error with || and && operators in a while loop
Hello! I have written a script in matlab, using the psychophysics toolbox and I keep getting this error "Operands to the ...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

calculate and print the duration of keypress
Hello! Does anyone know how I can get the duration(in secs) for which a key is being pressed down in my keyboard and it's name? ...

mehr als 2 Jahre ago | 1 answer | 0

### 1

Question

add character in a certain position in character array-matlab2015b
Hello! Is there anyway I can add a new character in a certain position of a character array? For example I have 'ABCD' and i wa...

mehr als 2 Jahre ago | 1 answer | 0

### 1

random choice of elements for n times, without choosing the same element more than once
I am attaching the whole code the way I altered it even though it also uses psychtoolbox... I have 4 trials and in every trial I...

mehr als 2 Jahre ago | 0

random choice of elements for n times, without choosing the same element more than once
Hello again. Both the above replies give me the same result. Thanks for your time!! But I dont want to get all the letters of th...

mehr als 2 Jahre ago | 0

Question

random choice of elements for n times, without choosing the same element more than once
Hello! I am trying to randomly choose one element from a string for a predifined number of times but I don't know how I can avoi...

mehr als 2 Jahre ago | 4 answers | 0