Frage


Indexing problem based on value?
Hi, I encountered a strange problem. For A= [5 4 3 2 1 0 1 2 3 4 5]; I can't do B = A(1): A(6). The return is 1×0 empty doub...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


using break to stop nested loop
X = [1 2 3 4 5 4 3 6 7 8 9 10 11 12 11 10 9 8 7 8 9 10 9 8 7 6 5 4 3 2 1 2 4 5 6 7 8 9 11 12 11 10 9 8 7 9 10 9 8 7 6 5 4 3 2 1...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


removing specific values in a cell array
Hi, I have a cell array A = {[1:10] [1:10]}; I would like to remove any elements which are less than 3 and greater than 8 in ...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


stopping the loop and save in a cell array
Hi, I have a vector: a = [1 3 4 2 3 4 5 6 3 4 5 6 8 9 10 9 8 7 6 7 8 9 8 7 5 4 3 2 4 5 3 1 2 4 4 3 2 4 6 5 4 6 7 9 9 10 9 8 ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Extracting vectors from big vector
Hi, I have a vector: a = [1 3 4 2 3 4 5 6 3 4 5 6 8 9 10 9 8 7 6 7 8 9 8 7 5 4 3 2 4 5 3 1 2 4 4 3 2 4 6 5 4 6 7 9 9 10 9 8 ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Switching vector position in a cell array
Hi, I have a cell array a = {'Susan' 'John'}; May I know if it is possible to switch positions of two vectors at the s...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


while loop not ending, juz stopped at i = 3
Hi, I am new to Matlab. I wrote a below script to get the vector fwd = [3 8]. If I put breakpoints I could see the fwd I want. ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Splitting vectors into cell array in a loop
From the script below, I get fwd = [1 3 5 7 9 10 2 3 5 6 9 10 1 3 4 6 8 9 10]; I would like to save three separate vectors in...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


finding forward direction in matlab
Hi, I want to write a script for separate forward and backward directions for animal position in a linear track. This is simpl...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Finding maximum value between specific columns for each row
Hi, May I ask about Finding maximum value between specific columns for each row? Let's say I have A = [1 2 3 4 5; 6 7 8 9 10; 1...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Stop for-loop at the second last column
E.g. I have a vector a = [1 1 5 1 1 1 10 2]; Error appeared when the loop reached the last column. I am writing to stop at end-1...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Find at least 5 consecutive values above a certain threshold in a vector?
I have a vector M = [3,3,5,7,8,8,9,7,4,3,2,1,7,6,5,2,2,2]; I want to find at least 5 consecutive values which are above the t...

etwa 5 Jahre vor | 3 Antworten | 0

3

Antworten