About 8,610,000 results
Open links in new tab
  1. input - Request user input - MATLAB - MathWorks

    x = input(prompt) displays the text in prompt and waits for the user to input a value and press the Return key. The user can enter expressions, like pi/4 or rand(3) , and can use variables in the …

  2. How to request a specific user input? - MATLAB Answers

    Sep 30, 2024 · I want to ask the user if they want to EXP1 or EXP2. If the user enters '1' or '2', then I want to display "running exp 1 or 2", otherwise I want the program to display error …

  3. How to code an input function in script? - MATLAB Answers

    Jan 10, 2021 · I'm using MatLab R2020b (academic use), and I have installed all toolboxes & extras. Here is my code, it's in Dutch but there's English explanation as well: %User inputs …

  4. User input as a variable. - MATLAB Answers - MATLAB Central

    Jul 19, 2021 · I’m writing a script asking the user for an input and I want to use that input (string) as a variable and assign it a value. Basically, I want the user to name the variable and I will …

  5. Store a variable from prompt user input - MATLAB Answers

    Jun 8, 2017 · Hi, I have this function which display a request in the prompt and asks user to input a number. The function then repeats until user inputs a valid number. function num = …

  6. request user input for a number of inputs - MATLAB Answers

    Mar 2, 2012 · At the start of one of my scripts I would like to use the input command for the user to specify some values for a given location. For example, if I have four locations: Location = …

  7. inputdlg - Create dialog box to gather user input - MATLAB

    MATLAB ® stores the input as a cell array of character vectors. Convert a member of the input cell array to a number, using str2num . Create an input dialog box that asks users to enter …

  8. get user input in the form of an integer - MATLAB Answers

    Apr 21, 2021 · The user inputs two integers and they are stored in the user_input array. user_input = input( 'Please enter min and max in the form of [min,max]' ); The user inputs are …

  9. How to request an input - MATLAB Answers - MATLAB Central

    Dec 18, 2011 · How to request an input. Learn more about input matrix If I want the user to type in a 3x3 matrix of his/her choice before the program, what command will I use?

  10. User input file directory - MATLAB Answers - MATLAB Central

    Jul 26, 2016 · I am writing a script that reads all of the files of a certain type in a given directory, and I'm wondering if there is a way to allow the directory location to be a user input.

Refresh