Contests
Follow


2024 Community Contest Starts Today. Have Fun and Win Prizes!

Chen Lin on 7 Oct 2024
Latest activity Reply by Vinay Ramesh on 22 Oct 2024

We're excited to announce that the 2024 Community Contest—MATLAB Shorts Mini Hack starts today! The contest will run for 5 weeks, from Oct. 7th to Nov. 10th.
What creative short movies will you create? Let the party begin, and we look forward to seeing you all in the contest!
Hiroshi Iwamura
Hiroshi Iwamura on 22 Oct 2024
Is there something wrong with the "Create Movie" in Mini Hack?
I get an error with just this function:
function drawframe(f)
plot(rand(10,2))
end
Vinay Ramesh
Vinay Ramesh on 22 Oct 2024
@Hiroshi Iwamura - Runs fine for me. What error do you see?
Hiroshi Iwamura
Hiroshi Iwamura on 22 Oct 2024
Thank you for confirming.
Earlier, no matter what I tried, I kept getting errors when creating a movie, but now it seems to be fine!
Vinay Ramesh
Vinay Ramesh on 22 Oct 2024
Glad you are unblocked. Sorry about the inconvenience.
Kaustubh
Kaustubh on 21 Oct 2024
Can I use music that is copyrighted?
Aman
Aman on 13 Oct 2024
Informative
Jenny Bosten
Jenny Bosten on 11 Oct 2024 (Edited on 11 Oct 2024)
I'm struggling to get my code to run on the online system. On my modest iMac it takes 1.3 seconds but it times out online after 235 seconds. It will run a single frame fine but I am unsure what the issue is with creating the movie.
I downloaded contestMovieGenerator and the code will run on my system and produce a movie file. Generating 96 frames outside the function (a more complex version) takes 12.9 seconds but generating the movie using the same code with contestMovieGenerator takes 132 seconds. Not sure if I am doing something wrong but it seems like most of the time allowance is taken up by the contestMovieGenerator function?
Chen Lin
Chen Lin on 11 Oct 2024
Hi Jenny. We do have a timeout for 235 seconds. If you can send us the code, we can try to test it out.
Jenny Bosten
Jenny Bosten on 11 Oct 2024
It looks like there is an interaction between contestMovieGenerator and my frame function that is creating a very slow result. I can see that contestMovieGenerator runs in 6 seconds if it is just producing blank white frames. I am creating an image, holding it, and then overlaying it with multiple further image layers with AlphaData on each frame - a similar stragegy as I have previously used. This process seems to be interacting with contestMovieGenerator. This code
image(zeros(500))
hold on
for k=1:24
image(ones(500),'AlphaData',rand(500))
end
takes 0.23 seconds to run 96 loops alone but takes 102 seconds with contestMovieGenerator. It’s not clear to me what is causing the interaction but perhaps I will need to try different strategies to try and get it down in time.
Jenny Bosten
Jenny Bosten on 13 Oct 2024
Update: got round it by doing my own transparencies - 'Alphadata' seemed to be the thing that slowed it down most.