Community Profile

photo

David Haydock


Last seen: 3 dagen ago Active since 2022

Statistics

  • Thankful Level 1
  • First Answer

View badges

Content Feed

View by

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

27 dagen ago | 1

| accepted

Question


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

27 dagen ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer 2 maanden ago | 2 answers | 0

2

answers

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

4 maanden ago | 0