How do I Change the Dialog Box Output
3 views (last 30 days)
Show older comments
J. Ryan Kersh
on 12 Oct 2013
Edited: Azzi Abdelmalek
on 12 Oct 2013
Hi, I am trying to use a dialogue box to get user input. However, the answers being returned are in a cell array with apostrophes. Can I get an output without apostrophes?
My code is:
input = inputdlg({'T1','T2','T3','T4', 'T5', 'T6'}, 'Input', [1 7; 1 7;1 7; 1 7; 1 7; 1 7], {'0', '0','0', '0','0', '0', '0'})
and it returns:
input =
'0'
'0'
'0'
'0'
'0'
'0'
Thanks for the help.
J. Ryan Kersh
0 Comments
Accepted Answer
Azzi Abdelmalek
on 12 Oct 2013
Edited: Azzi Abdelmalek
on 12 Oct 2013
A = inputdlg({'T1','T2','T3','T4', 'T5', 'T6'}, 'Input', [1 7; 1 7;1 7; 1 7; 1 7; 1 7], {'0', '0','0', '0','0', '0', '0'})
in=str2double(A)
% Do not use input as a variable, it's a Matlab function
0 Comments
More Answers (0)
See Also
Categories
Find more on Multidimensional Arrays 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!