dialog box option instead of the input command
古いコメントを表示
Hello
Here is a piece my code which takes an input file for analysis. The file itself(asig) has 10 million rows and two columns. The following input commands take the limits to scan the data.
[anasignal,path] = uigetfile('*.csv','Select the .csv file to analyze');
if isequal(anasignal,0)
disp('User selected Cancel');
end
asig = csvread(fullfile(path, anasignal),15,0);
llimit = input('specify where you want to start panning?:');
ulimit = input('specify where you want to end panning?:');
aamp = asig(llimit:ulimit,2);%vary this to get more samples
ts = asig(2,1) - asig(1,1);%sampling rate calculated automatically
tim = [llimit-1:ulimit - 1]*ts;%vary this in accordance with aamp
time = tim';%transposed to get a column vector for plotting
Input command takes me to Matlab command prompt. Is there a way to get a dialog box/modal window instead which takes two values lower limit and upper limit and assigns it to llimit and ulimit?
Thanks
採用された回答
その他の回答 (1 件)
Walter Roberson
2011 年 8 月 24 日
0 投票
It is possible to program such a thing, but it would not be considered good style as it would involve a called routine assigning values in the workspace of the caller.
カテゴリ
ヘルプ センター および File Exchange で Vector and Raster Map Display についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!