About 4,410,000 results
Open links in new tab
  1. How can I get a vector from users? - MATLAB Answers - MathWorks

    Nov 11, 2018 · In this code, you can create your own vector by prompt "m" value. For example, if you type m= 5, you will have 1x5 vector. Then, you can start to prompt your own integers. If …

  2. Storing user input as a vector - MATLAB Answers - MathWorks

    You need a separate variable to indicate the array index you want to store the number in. In your example, the user enters '2' twice. Since you are using the input to specify the index, the …

  3. how to use a vector as an input in a function - MATLAB Answers

    Mar 31, 2019 · how to use a vector as an input in a function. Learn more about function vector MATLAB dear all i wanna creat a function which use a vector and a digit as inputs. it is as …

  4. 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 …

  5. How to use a vector as an input in a function? - MATLAB Answers ...

    Oct 21, 2022 · I have made this function: function [AR,DEC] = astrometry(x,y,A,B,C,D,E,F) AR = A*x+B*y+C; DEC = D*x+E*y+F; end And I want to use some vectors as input: …

  6. colon - Vector creation, array subscripting, and for-loop iteration ...

    When you create a vector to index into a cell array or structure array (such as cellName{:} or structName(:).fieldName), MATLAB returns multiple outputs in a comma-separated list.

  7. How to Insert Data Into a Vector in MATLAB - MATLAB - MathWorks

    Learn how to insert additional values into a vector in MATLAB. When working with an existing data set of any size, you may encounter a scenario that requires you to insert values into an …

  8. isvector - Determine whether input is vector - MATLAB - MathWorks

    TF = isvector(A) returns logical 1 (true) if A is a vector. Otherwise, it returns logical 0 (false). A vector is a two-dimensional array that has a size of 1-by-N or N-by-1, where N is a …

  9. How do I make a function accept a vector as an input

    Feb 12, 2019 · If you want to pass the first, second, third, or nth element of the input vector to your function, then tell matlab you want the 1st, 2nd, 3rd or nth element of that vector, the …

  10. insert element in vector - MATLAB Answers - MATLAB Central

    Sep 24, 2012 · There is no MATLAB operator for inserting into a MATLAB vector. Concatenating elements as described by Wayne King, Andrei Bobrov, and Daniel Shub is the natural …

Refresh