Contests
Follow


code not running? no timeout error, just no gif and no drawframe(1) (after the first time i try running the code)

Sarah Preston on 23 Nov 2023
Latest activity Reply by Vinay Ramesh on 28 Nov 2023

i've finished writing the code for my ~masterpiece~ and it doesn't run on the contest new entry page. it runs on matlab on my desktop and in the matlab live editor in my browser, but not where i really need it to. usually it'll draw the first frame the first time i run the code in a new window, but not any subsequent times. whether i hit "run" or "create animation", the screen grays out as it's supposed to, but then returns to normal without generating the first frame or animation.
i'm not getting a timeout warning or any error messages. i timed the code on my laptop and it takes about 100ish seconds to run and generate the animation the first time i run it before clearing everything from my workspace (and then it takes about twice as long each subsequent time, which makes me a bit nervous. can't figure out why this is the case at all!), which is well within the 255 second limit for the contest. as far as i know, the most computationally expensive function i'm using is patch(). i'm pretty close to the character limit, but i don't know if that's part of the problem.
i tried vectorizing some of the code instead of using for loops, which made the code run slightly slower. i tried using a nested function instead of using drawframe() and an auxiliary function, but that didn't help. i tried clearing all variables except f at the end of drawframe() to no avail. i tried using the close command at the start of drawframe(), with similar success. i updated chrome, closed a bunch of windows, tried safari, used my sister's laptop, all with no luck.
has anyone else had this or a similar problem? any advice?
thanks!
Vinay Ramesh
Vinay Ramesh on 28 Nov 2023
This issue has been fixed. Confirmed with @Sarah & @Tim
Tim
Tim on 24 Nov 2023

Hello Sarah I have had the same issue exactly but thought I was the only one! Thanks for posting

Chen Lin
Chen Lin on 23 Nov 2023

Hi Sarah. We are investigating on it.

Sarah Preston
Sarah Preston on 23 Nov 2023
i'm thankful for the matlab staff!

Tags

No tags entered yet.