Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Making a GIFand other image related question.

1 vue (au cours des 30 derniers jours)
Logan
Logan le 21 Fév 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
I am working with a juvenile-adult model and I am trying to make a GIF that shows what the system's attractor does as the birth rate is varied. If possible I would like to have a mutliplot where the left hand figure is the system's bifurcation diagram with a red line moving along it to show the progression of the birthrate with respect to the changing attractor which would be on the right hand side. The following is what I have so far (Though it may be way off!). Note: I have left out some of the irrelevant lines of code. CODE FOR ATTRACTOR:
for i=1:lenght(b)
X(1)=1;Y(1)=2;
for t=1:1000
X(t+1)= [...]
Y(t+1)= [...]
end
plot(X(500:T),Y(500,T),'.k')
M(i)=getframe
end
movie(M,100,2)
NOTE: This works great but I don't know how to convert the movie into a gif or format that pdf can handle. Also if goes through the first loop of the movie far too fast.
My plan for the bifurcation diagram with the advancing line was to plot the bifurcation diagram then use "framegrab", and from there plot a line on top of the image. I don't think this particular method is going to work though because it is giving me great difficulty. Essentially for this I just need a way to plot a series of lines (one at a time) ontop of another figure.
I realize this is a lot to ask help for so any advice you can give will be appreciated. I've never done a lot of image manipulation in MatLab so anything will help. If you need me to clarify anything I can. Thanks in advanced.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by