Community Profile # Charms

##### Last seen: 5 days ago
43 total contributions since 2019

• View details...

Contributions in
View by

Question

Variable for loop storage
Hi, I currently have this code which allows the for loop to run based off an array, but I cannot run the same for loop to create...

6 days ago | 2 answers | 0

### 2

Question

Which graph is recommended?
Hi, I have a matrix (attached) and each row constitutes a 2 unique numbers that I would like to plot (coloumn order matters). Fo...

4 months ago | 1 answer | 0

### 1

Question

Unique values in cell array
Hi, I have a cell array and would like to find the unique values (by row) in the cell array. Each row has a variable number of n...

4 months ago | 1 answer | 0

### 1

Question

Which graph function to use?
Hello! I would like to create a chart like this (see attached) - with each participant on the x axis and the y axis being the co...

4 months ago | 1 answer | 0

### 1

Question

Comparing cell with criteria
Hello! I have cell matrix "Spfcfef" (120x2) as attached and would like to produce 3 outputs. 1) numbers 1-9, that did not appe...

6 months ago | 1 answer | 0

### 1

Question

Overlap of 2 logicals
I have 2 logicals, B and B2 of the same size (120x9), and would like to find the number of overlaps of 1s(true) in B and B2 of t...

6 months ago | 1 answer | 0

### 1

Question

Converting numbers into logicals
Hi, I would need to convert matrix A into a 120x9 logical array (B). A is a 120x1 cell, and each row contains numbers 1-9 (numbe...

6 months ago | 1 answer | 0

### 1

Question

Embedded if loop in for loop
Hello! I have a 120x2 matrix and would need to match for every row, if there is a common number that appears in both columns. Ev...

6 months ago | 1 answer | 0

### 1

Question

Storing double output into a single cell array
Hi, is there a way for me to store the output in a cell format, in a single matrix? I want to store each 'selectedlocal' as part...

6 months ago | 1 answer | 0

### 1

Question

How to write a loop that does not increase by +1?
Hello :) I currently need to run a loop with the output of "find(collated(1,:) ==0 )". Currently, the output is [2 ; 4 ; 5 ; 6 ;...

6 months ago | 1 answer | 0

### 1

Question

Cross-correlation questions
Hi, I have 2 spike trains and would like to use cross-correlation to find out their time lag. Are there any resources out there ...

6 months ago | 1 answer | 0

### 1

Question

Summing up the answers in for loop that meets criteria
I have this code and would like to find out of the 220 loops, how many of the corrcoef end answer fit the criteria of P<0.05 and...

6 months ago | 1 answer | 0

### 1

Question

How to store corrcoef values?
Hello, I currently have a script and would like to store the respective r and p values in a matrix. I tried with A(n) = R after ...

6 months ago | 1 answer | 0

### 1

Question

Combination of 2 columns
Hi, I have 2 vectors, A = 10x1, B = 6x1. How do I create a 60x2 matrix where every element of A is matched to the element of B...

6 months ago | 1 answer | 0

### 1

Question

Mean of 3rd dimension
I have a matrix of 10 x 20 x 35. How do I mean the first 5 layers of the 3rd dimension (layers 1-5), resulting in 2D matrix of 1...

7 months ago | 1 answer | 0

### 1

Question

To arrange matrix based off criteria in column
Hi i have a 60x2 matrix, with the first column being a number from 1 to 300 (not consecutive), and the second column with locati...

8 months ago | 1 answer | 0

### 1

Question

help me debug - how to prevent code from collating with for loop?
Hi, I have this code that goes like this and I do not understand why the problem matrix is collated i.e. it gives a size of 2201...

8 months ago | 0 answers | 0

### 0

Question

Finding maximum number location in a matrix
I have a 8x6 matrix (A) and would like to find the row location of the max number in each column, thereby ending up with a 1x6 v...

8 months ago | 1 answer | 0

### 1

Question

Selecting numbers in matrix that are repeated
I have a 60x5 matrix A and would like to find the answer vector that lists all the numbers in A that appeared at least 2 times/r...

8 months ago | 2 answers | 0

### 2

Question

I have code line that goes as such. It displays all the answers from earlier part of the code's for loop iterations and I would ...

8 months ago | 1 answer | 0

### 1

Question

writing code so that for loop does not overwrite
Hi, I currently have this code and would like to NOT have the for loop overwrite with every t so that there will be 11 selective...

8 months ago | 1 answer | 0

### 1

Question

Finding number of answers from for loop that fits criteria
Hi, currently I have a code that looks something like this and would like the answer to be the number of p that fit the criteria...

8 months ago | 1 answer | 0

### 1

Question

storing for loop answer into matrix
Hi, i have this code and it gives me 8 answers of matrix "locations". Is there a way I can write another line of code to store t...

10 months ago | 2 answers | 0

### 2

Question

Pad with Nan according to maximum row in cell
Hi, I have a 1 x 8 cell (attached) and would like to cell2mat this matrix i.e to expand and show into one big numeric 97 x 8 arr...

10 months ago | 1 answer | 0

### 1

Question

help me understand accumarray
hi i was reading on accumarray (https://www.mathworks.com/help/matlab/ref/accumarray.html) and I do not understand how matrix A ...

10 months ago | 1 answer | 0

### 1

Question

Extracting the same column in a cell array for anova
Hi, I currently have a 1 x 8 cell (attached) and would like to extract the same column in every double and run an anova1 on them...

10 months ago | 2 answers | 0

### 2

Question

grouping numbers in matrix
Hi, I have 2 matrices A = [ 1, 2, 3, 2, 2, 3, 3, 1, 1] B = [34, 20, 23, 31, 30, 33, 44, 22, 28] and would like to group them ...

10 months ago | 2 answers | 0

### 2

Question

finding position of matrix using for loop
Hi, I would like to find the number in A based off the number in the for loop as the position number eg n = 3, the answer shou...

10 months ago | 1 answer | 0

### 1

Question

finding location of logical 1 row wise by column
Hi, I have a 8 x 621 logical and I would like to extract the row location of the logical 1 by columns i.e the result should be a...

10 months ago | 1 answer | 0

Question