Data brush in GUI

1 次查看(过去 30 天)
Kim Nguyen
Kim Nguyen 2013-1-21
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 个评论
Kim Nguyen
Kim Nguyen 2013-1-22
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 2013-1-23
编辑:Kim Nguyen 2013-1-23
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by