Data brush in GUI

조회 수: 3 (최근 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