Drag and Drop file (txt file)

조회 수: 7 (최근 30일)
cemsi888
cemsi888 2015년 2월 5일
답변: Xiangrui Li 2016년 6월 28일
Hi every one . I want to make drag and drop box. Could you give me advices about that. My target is: I took text files from our experiments and than i want to drag and drop it into command window.After that i want to control my calculations , plot diagrams etc... As you expected i have too many Experiment results and i want to make my calculations succesively thats why i need drag and drop box. how can i create it ?and how can i link Buttons with m files.
  댓글 수: 6
cemsi888
cemsi888 2015년 2월 5일
yes you are rihgt it is not matlab command window.and do you know how can i add Status bar in my "COMMAND WINDOW"?
Michael Haderlein
Michael Haderlein 2015년 2월 5일
Just create axes at this position and a patch in there. Set xlim to [0 1] and update the xdata of the patch over progress:
figure, ha=axes('xlim',[0 1],'ylim',[0 1],'xtick',[],'ytick',[],'box','on');
hp=patch([0 0 0 0],[0 0 1 1],'r');
for cnt=1:100
set(hp,'xData',[0 cnt/100 cnt/100 0])
pause(.1)
end

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2015년 2월 5일
Drag and drop is an open problem in Matlab. You could use an ActiveX control under Windows, but you did not specify if the code must be platform-independent.
See:

추가 답변 (1개)

Xiangrui Li
Xiangrui Li 2016년 6월 28일
For anyone who is interested, here is a nice solution with java
-Xiangrui

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by