Effacer les filtres
Effacer les filtres

Data brush in GUI

2 vues (au cours des 30 derniers jours)
Kim Nguyen
Kim Nguyen le 21 Jan 2013
I want to have the data brush tool that matlab uses in its plot in the gui similar to pan and zoom. i would use the data brush tool to high-light the data and copy the data into an excel. I have many case files and so therefore i would like to graph all of them on the same graphs. the gui has over 1000 scenarios though so i dont know want all of them.
any help would be appreciated, thanks
  2 commentaires
Kim Nguyen
Kim Nguyen le 22 Jan 2013
another method would be, save the sub plots as .fig so that i can open them and use the data brush tool so if theres a way to save them pelase let me know. i tried usign the saveas function but i think its more complicated to use in a gui as far as structurig the command
Kim Nguyen
Kim Nguyen le 23 Jan 2013
Modifié(e) : Kim Nguyen le 23 Jan 2013
here is a code that i found that saves the entire gui layout... however i only want to save the axes, how would i modify this code so it only saves the axes? this code is palced in my save button call back function
fileName = inputdlg('Please enter the name for your figures');
directoryName = uigetdir('','Please select a folder to save to');
if directoryName == 0 %# User pressed the "Cancel" button...
directoryName = ''; %# ...so choose the empty string for the folder
end
filePath = fullfile(directoryName,fileName{1}); %# Create the file path
extensions = {'fig','bmp'};
for k = 1:length(extensions)
saveas(gcf,filePath,extensions{k}); %# Save the file
set(gcf,'PaperPositionMode','auto');
end

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots 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