Community Profile

photo

David Haydock


Last seen: 12 Monate vor Aktiv seit 2022

Followers: 0   Following: 0

Statistiken

  • Thankful Level 3
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


How do I find rows that match a list of vectors without using a loop?
Let's say I have a list of length 2 vectors that can occur, which I put in a matrix as rows: possible = [1 2; 1 3; 1 4; 1 5; ...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Is there a function like movsum which simply gets the values in a given sliding window rather than summing them?
If I have a sequence x = [1 2 3 4 5 6 7 8 9 10]; What is the most efficient way to get sub-vectors in a sliding window, i.e., ...

etwa ein Jahr vor | 3 Antworten | 0

3

Antworten

Frage


Determine the number of elements in succession in a vector that are equal in a succinct way
I have a sequence, say: x = [4 4 4 4 4 1 1 1 1 1 1 2 2 2 2 2 2 2 4 4 4 4 4 4 4]; I need to get the 4's at the end of the seque...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
Is there a basic function that gets one half of a symmetrical matrix?
triu(X)

mehr als ein Jahr vor | 1

| akzeptiert

Frage


Is there a basic function that gets one half of a symmetrical matrix?
Title speaks for itself. I have done multiple pairwise t-tests and want to get one half of the p-value matrix to check for false...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


How do I find a substring within two different strings at once?
Lets say I have a Nx2 cell array: X = {"Here is ABC", "Here is ABC";... "Here is AFB", "Here is ABC"... } I need to ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


How do I split a vector into parts using indexes?
I have a vector, say x = 1:100; and I have a vector that is indexes within the range of the size of x, say, y=[10,40,60]; ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
Is there a way to find the index of a subsection of a vector?
strfind

fast 2 Jahre vor | 1

| akzeptiert

Frage


Is there a way to find the index of a subsection of a vector?
Lets say I have the vector a = [1,2,1,2,3,4,5,1,2,1]; and I need to search through it to find: b = [1,2]; and get the output...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Is there a function to make a long list of a single value?
I.e. if I want to make a list 400 values long of all 1's, I would use ones(400,1) But what if I wanted to make a list of say,...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I count how many times in a row a value occurs?
If I have some list, say: A = [1 2 4 3 1 1 1 1]; How do I calculate and store *how many times in a row* each number occurs? F...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Why isn't my system command running? In Linux.
FSL was installed at the local level and worked when it was reinstalled at the root.

etwa 2 Jahre vor | 0