MATLAB: GUI for inputs in matlab

guiinputsinterfcae

my matlab code takes x,y,z coordinates in a while loop as inputs and then calculates some things to get an output. now I need to make an interface (GUI) for the inputs only. how can I do that???

Best Answer

A simple solution is to use inputdlg as follow.
entered_coordinates = str2double( inputdlg({'x', 'y', 'z'}, 'Enter coordinates') );
This will create a GUI prompt with 3 fields for x, y and z.