How to merge two (and more) fig-files
5 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 8 月 30 日
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 件のコメント
amy gravenstein
2020 年 2 月 21 日
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
2020 年 11 月 19 日
編集済み: Amanullah Khan
2020 年 11 月 19 日
@amy gravenstein @Walter Roberson
Did you find a solution for it? Even my output is kind of merging the outputs to a single surface
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!