Community Profile

photo

Heather Smith


University of Tennesee at Knoxville

Active since 2015

Followers: 0   Following: 0

Message

Statistics

Feeds

View by

Question


For loop indexing issue
The relevant code is: for ii = 1:v if v(ii) ~= a y = [v(ii)] elseif v(ii) == a y = [y ...

9 years ago | 1 answer | 0

1

answer

Question


How to cycle through a vector in function?
I've defined a row vector 1:10, then use randi(10). Say from randi(10) I got five; I want the program to output 5, 6, 7, 8, 9, 1...

9 years ago | 1 answer | 0

1

answer