How to merge two (and more) fig-files

조회 수: 5 (최근 30일)
mec123
mec123 2016년 8월 30일
편집: Amanullah Khan 2020년 11월 19일
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?

답변 (1개)

Walter Roberson
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
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
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by