How to copy a figure in anothe figure?
141 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
vatankhah
il 31 Lug 2013
Modificato: madhan ravi
il 18 Gen 2019
Hello, I want to produce the same figures. For example I have figure(1),figure(2). figure(1) with some points that are plotted in it and figure(2) is an empty screen. I want to copy figure(1) in figure(2).How can I do this with commands in matlab? please help me thanks a lot
0 Commenti
Risposta accettata
David Staack
il 18 Gen 2019
Modificato: madhan ravi
il 18 Gen 2019
plot(peaks)
a1 = gca
f2 = figure
a2 = copyobj(a1,f2)
0 Commenti
Più risposte (1)
Jan
il 31 Lug 2013
Modificato: Jan
il 31 Lug 2013
2 Commenti
Jan
il 1 Ago 2013
Modificato: Jan
il 1 Ago 2013
I think it is your turn to explain more details of what you want and what you have tried so far. It is not efficient, if I guess what "some points plotted in the figure" exactly means, because I will most likely not match your needs.
As the help text explains, copyobj duplicates objects to a new parent. So it does not copy the figure, but the objects the figure contains. The example contained in these docs should be descriptive enough already.
Vedere anche
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!