photo

Esme Stanford-Durkin


Last seen: 4 years ago Active since 2020

Followers: 0   Following: 0

Statistics

Feeds

View by

Answered
Create for loop to simplify code and output arrays
Solution, array to cell needed: ch = a(1); len = a(4); st = 5 ; y{1} = a(st: st+len-1); for i = 2 : ch len(i) ...

4 years ago | 0

| accepted

Answered
Create for loop to simplify code and output arrays
a is an array containing all the data from the text file a(1) is the number of 'channels' (number of y outputs), so in my initi...

4 years ago | 0

Question


Create for loop to simplify code and output arrays
I have this code: len1 = a(4); st1 = 5; % starting index for first channel y1 = a(st1: st1+len1-1); len2 = a(st1+len1); ...

4 years ago | 3 answers | 0

3

answers