How to merge two (and more) fig-files

5 vues (au cours des 30 derniers jours)
mec123
mec123 le 30 Août 2016
Hi,
i have a bunch of .fig-files of 3d plots. Each one has the same 3 axes. Now i have to merge all of them so i can see all the dots in one plot. I browsed many threads but all the answers i found were side-by-side solutions.
Is there a way to achieve that?

Réponses (1)

Walter Roberson
Walter Roberson le 30 Août 2016
output_fig = figure();
dinfo = dir('*.fig');
for K = 1 : length(dinfo)
this_fig_file = dinfo(K).name;
fig = openfig(this_fig_file, 'Visible', 'off');
three_ax = findobj(fig, 'type', 'axes');
copyobj(three_ax, output_fig);
delete(fig);
end
  2 commentaires
amy gravenstein
amy gravenstein le 21 Fév 2020
I used this code exactly and it runs. It recognizes my figures and attempts to merge them but the output is not correct.
Any advise?
Amanullah Khan
Amanullah Khan le 19 Nov 2020
Modifié(e) : Amanullah Khan le 19 Nov 2020
@amy gravenstein @Walter Roberson
Did you find a solution for it? Even my output is kind of merging the outputs to a single surface

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by