How to superimpose figures obtained from different simulations?

Hi! I would like to superimpose different figures that I have saved from different simulations (results from solving a problem for different load cases).If please anyone could help me... Thank you very much!

6 commentaires

What do these figures show? What would you expect to see if you superimpose them?
student
student le 29 Mar 2015
Modifié(e) : student le 29 Mar 2015
Hi Geoff, these plots show hysteresis cycles and I would like to see the change in shape when I superimpose them
I think Geoff was suggesting a more pictorial answer . Can you include a picture with the green & brown frame icon so we can see what we're dealing with? http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Hi, analyst what do you mean by green and brown frame icon? I attach some figures in any case.
When you click "Comment on this answer" and get an edit box, there are 10 icons - from the B in a square, to the last one on the right which is a question mark with the word Help beside it. The green and brown image frame icon is the 8th icon in the toolbox, between the chain link and the paper clip. As it is, with fig files, people have to download them and load them into MATLAB rather than just seeing them immediately like they could if you used the frame icon to insert the images into the message. So it's less convenient for us and makes it less likely that people will help you.
Ah, ok, thank you. I'll do it then.
<<
<<
<<
>>
>>
>>

Connectez-vous pour commenter.

Réponses (2)

Image Analyst
Image Analyst le 29 Mar 2015
Some functions to look at imfuse(), imshowpair(), montage(). And of course you might get able to use getimage() or getframe() and average the two RGB images.

2 commentaires

Hi Analyst, This plots show hysteresis cycles and I would like to see the change in shape
So would I.

Connectez-vous pour commenter.

After you plot the first curve, just put "hold on" and then plot your subsequent curves.
hold on;
That will prevent subsequent calls to plot() from blowing away the prior curves.

4 commentaires

Hi Analyst. But this figures are a result of different simulations and are saved as .fig files
Then save the data into .mat files, and have another program that reads in all the different mat files and combines them. Use code from the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
I now have them combined and are read in a Loop. I see the Pictures instantaneously but only the last one stays. I have written hold on before using imread each time inside the Loop, but it doesn't work...
Let me see the loop. You don't have a hold off anywhere in there do you? Or a cla('reset'), do you? And why are you using imread() instead of load? You don't want to save fig pictures - you want to save the actual x,y data ONLY, NOT fig pictures. Then use load() to read in the x,y coordinates and plot them.

Connectez-vous pour commenter.

Catégories

Question posée :

le 29 Mar 2015

Commenté :

le 30 Mar 2015

Community Treasure Hunt

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

Start Hunting!

Translated by