Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I export axes from existing figures to put in plotyy?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to write a code to export axes from two existing figures to make one with plotyy. I know that the following code pick my matrix F with all the names and open the figures and save their axes.
a = '.fig';
for i = 1:size(F,2)
A = strcat(F{1,i},a);
h{i} = openfig(char(A)); % open figure
ax{i} = gca; % get handle to axes of figure
end
h3 = figure; %create new figure
Now here's the problem: gca puts all my axes in a structure, so when I try to write plot(ax{1},ax{2}) it doesn't work. I tried to find an answer in other questions exposed in the Community, but all that I found don't work. How can I fix it? What's the other way?
Thank you a lot
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!