Oh no – did you change the way you show videos? Is it all on youtube now? My work blocks youtube, but I’ve been able to watch all the previous videos. I can see this video at all. What changed? Thanks for any help.
We are in the process of moving to YouTube for distribution. I would like to hear from people if this is a good idea. The polling we did earlier showed that it would give us a wider audience.
Sorry, the YouTube wouldn’t work for me at all. I can’t watch YT at work (have to make nice with the IT folks), and I generally don’t do work at home. Is there any way to have a link to a non-YT option in addition to the normal YT movie?
from my point of view moving videos to YT is not a good idea as it is blocked at most companies. I use Matlab only at work so I would prefer the way it was before.
Yes, the continue is gratuitous. However, I like it for clarity.
I will very often have all the options covered explicitly even if the code would just ‘fall through’ and do the same thing. That way when I am reading the code and I am thinking “What happens if X is less than Y?” I don’t have to work out that it just continues, it is explicitly in there.
In some way, it is just kind of a comment in the code. But you are right, for the most part, it is a no-op.
hello
what should one do if there is two while(or for)loop exist?i want the program to stop counting when a if condition fulfilled in the inner for loop..sth like goto command.could you please guide me?
Oh no – did you change the way you show videos? Is it all on youtube now? My work blocks youtube, but I’ve been able to watch all the previous videos. I can see this video at all. What changed? Thanks for any help.
@Kate,
We are in the process of moving to YouTube for distribution. I would like to hear from people if this is a good idea. The polling we did earlier showed that it would give us a wider audience.
Please, let us know!
Doug
@Doug,
Sorry, the YouTube wouldn’t work for me at all. I can’t watch YT at work (have to make nice with the IT folks), and I generally don’t do work at home. Is there any way to have a link to a non-YT option in addition to the normal YT movie?
Thanks for listening,
Kate
@Doug
from my point of view moving videos to YT is not a good idea as it is blocked at most companies. I use Matlab only at work so I would prefer the way it was before.
Idem. Youtube is blocked in my company.
Why bother with the “continue” command? It can be simplified to:
if dieRoll < target break endContinue is implied by the while loop.
@scott,
Yes, the continue is gratuitous. However, I like it for clarity.
I will very often have all the options covered explicitly even if the code would just ‘fall through’ and do the same thing. That way when I am reading the code and I am thinking “What happens if X is less than Y?” I don’t have to work out that it just continues, it is explicitly in there.
In some way, it is just kind of a comment in the code. But you are right, for the most part, it is a no-op.
Doug
hello
what should one do if there is two while(or for)loop exist?i want the program to stop counting when a if condition fulfilled in the inner for loop..sth like goto command.could you please guide me?
@Safa,
If resturcturing does not work, you could set a flag and break. The flag you set would then trigger a break out of the outer loop.
Doug