Community Profile

Contact

Like if i have greencars=[11111111000000000000] how to i get Matlab to count how many ones there are?

4 Answers

0

Asked 2 years ago

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...

1 Answers

for i=1:60; x=(.5+4.5*rand)+x; how do i figure out how much time went by during these 60 iterations?

for i=1:n; if (i == 1) l=(.5+4.5*rand); x(i,1)=l; y(i,1)=mod(x(i),60); else ...

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...

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...