MATLAB: Program to get the user to enter the values

inputinputdlgprogramming

function y=mx+c
how can i write a program to get the user to enter the values for x and c and display the result for y

Best Answer

  • If you are expecting a command line input you can use the INPUT command:
    A quick and nice graphic way is to use the function INPUTDLG: