Statistics
1 Question
0 Answers
RANK
252,905
of 301,436
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 21,278
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 174,540
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
How would i make the for loop stop calculating when it calculates F <= 0? I want the for loop to stop writing. values in F when it hits 0 or less. I have tried "break", but can not seem to get it to work.
n = 10; terskelverdi = 0.1; F = zeros(n,1); F(1) = 1; F(2) = 1; for k = 3:n r = rand(1); if r ...
8 years ago | 1 answer | 0
