How do I Change the Dialog Box Output

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

 Accepted Answer

Azzi Abdelmalek
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

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!