I have the next code in MATLAB and I have a GPU and I would love to parallelize it in order to get faster results and I justo don't know how to visualize it in real time like a movie.
Maybe I can help you. Just clarify one point before. You have a code that can make calculations, right? and you have a GUI (Graphic User Interface). You want to make them in parallel; it means you have a multi-core PC. Thus, as the code is done, the calculations, you see the movie, in piece, like youtube, as your stream arrive, you can see it, two processors for one job.
The fact that I am not sure if you want to set in parallel the calculations or the calculations and GUI. The former I have already done, whereas the maybe. Maybe there is not reason to make it parallel, you can use a "loop-pause".
Unfortunately I have other things to do right now, but I can suggest you how to solve the problem, how I would solve it, please, let me know if you succeed.
First of all, you must learn the key-terms of your Matlab version, they change the key-words from versions to version, mine is 2013b, some older versions do not contain the parallel "pools", I think they have started from 2012. In general it is not complicate, you must put a key-word in the beginning of your code, then make use of key-words inside the code for each loop, for instance, if my memory serves me well, for -> pfor. You have several tutorial in Google, type, parallel computation matlab.
Create three files, one for calling the pools, one for the code itself, and one for the graphs. See that you cannot parallelize a code insight a code, or a loop with an external variable, a code to be parallelize should be independent.
Then simply call then in sequence, run the code as much you please before plotting. Suggestion, do not use too much processors, if you have 8, just use 5. Honestly, in my simulations the parallel computation did not help too much.