Hey, I have several .fig plots, I want to merge all these (.fig) plot in one single plot. Could anyone please let me know how I can do it. I am not looking for subplotting. Thnx
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
merge several .fig plot into one plot.
0 commentaires
Réponses (1)
KSSV
le 25 Avr 2017
Open the .fig file and get the data from the .fig as discussed in the link: https://in.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures.
Open figures in a loop, get the data and plot them using hold on.
2 commentaires
KSSV
le 25 Avr 2017
Murtaza Ali Khan commented: Hi KSSV,
Thanks for your answer, I tried to run the code it's giving an output of one .fig plot. I am new in Mtalab could you please help me to let me know that how can I put several .fig plots in one loop? and then merge into one plot.
Thanks
KSSV
le 25 Avr 2017
figs = dir('*.fig') ; % get all .figs in folder
nfigs = length(figs) ; % number of figures
for i = 1:nfigs
figname = figs(1).name
% your code here
end
Voir également
Catégories
En savoir plus sur Subplots 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!