How to create dialog boxes to select the file and display output ?
1 view (last 30 days)
Show older comments
Hello all, I am trying to create a standalone application which opens dialog boxes to select the values and displays output. when I am trying to create dialog boxes using the following code, I am getting errors.
function trial8
prompt1={'Enter input file name (without extension [.mat]): '};
fname1 = inputdlg(prompt1); prompt2=('choose spanning window 9 or 11 (without extension [.mat]):');
fname2=inputdlg(prompt2);
[NUM,TXT,RAW]=xlsread('2.csv')
[row,col] = size(NUM);
I want the dialog box to ask for the file selction and display the corresponding output. Can anyone please help me out. Regards,
0 Comments
Accepted Answer
Paulo Silva
on 20 Mar 2011
You got the line wrong
[NUM,TXT,RAW]=xlsread('2.csv')
You ask the user for the name of the file so you should use that input
[NUM,TXT,RAW]=xlsread([char(fname1) '.csv'])
5 Comments
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!