# Math Help - MATLAB - GUI Input

1. ## MATLAB - GUI Input

Hello everyone!

I try to make an input in MATLAB using a GUI..
Here's the code:

Code:
box=inputdlg({'Height1: ','Height2: '},'Title',1,{'4000','750'})

height1=box(1);
height2=box(2);
If I run it, I see the box and enter the values.
But the value is saved as a "text variable".

This means I can't calculate this:
height3=height1-height2

Because height1 is '4000' and height2 is '750'. The problems are the ' ', so I can't use them as normal numbers.

Is there a way to make them into normal numbers?
I hope you can help me

Best regards,
unique

EDIT: I think I already solved the problem using str2num