Statistics
6 Questions
0 Answers
RANK
165,536
of 288,852
REPUTATION
0
CONTRIBUTIONS
6 Questions
0 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
0
RANK
of 19,496
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 143,064
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Question
how can i specify to take the middle digits of a string?
like if i have 426,692,449,089, i need a variable to assume the value of 692,449, it could also be 653217, i would need...
11 years ago | 1 answer | 0
1
answerQuestion
how do i direct a for loop, to end after a variable reaches a certain point say x>7200? x is being accumulated in the loop but it is just a value thats inside the loop. the loop is for i:1:7200 but x reaches 7200 first then i want it to stop
for i=1:n; if (i == 1) l=(.5+4.5*rand); x(i,1)=l; y(i,1)=mod(x(i),60); else ...
11 years ago | 1 answer | 0
1
answerQuestion
if i have a counter how would i specify that every time the counter goes up in increments of 1 to execute a command ?
specifically how to make this for loop take the cars in queue(or at the red light)and have them go clc %This code made me l...
11 years ago | 1 answer | 0
1
answerQuestion
how do i create a loop that generates random numbers in between .5 and five seconds(.5+4.5*rand), that accumulates up to 60 seconds then resets back to zero seconds for 120 times
I have been trying to do this for two days and have a cluster f of variables which in the end doesn't work. I also need a separa...
11 years ago | 1 answer | 0
1
answerQuestion
if i have a for loop doing iterations based on random intervals of time between .5-5 seconds, how do i keep track of that time?
for i=1:60; x=(.5+4.5*rand)+x; how do i figure out how much time went by during these 60 iterations?
11 years ago | 1 answer | 0
1
answerQuestion
How do you get Matlab to return a value for how many 1's are in a vector containing just 1's and zeros
Like if i have greencars=[11111111000000000000] how to i get Matlab to count how many ones there are?
11 years ago | 4 answers | 0