About 14,300,000 results
Open links in new tab
  1. assignin - Assign value to variable in specified workspace - MATLAB

    assignin(ws,var,val) assigns the value val to the variable var in the workspace ws. For example, assignin('base','x',42) assigns the value 42 to the variable x in the MATLAB ® base …

  2. How to assign new value to an element in an array (MATLAB)

    For newer versions of MATLAB, that do implicit singleton expansion, you can do: B = A == max(A); Here we just find, for each column, the element that matches the maximum for that …

  3. Create and Edit Variables - MATLAB & Simulink - MathWorks

    You can create new variables in the workspace by running MATLAB code or using existing variables. To create a new variable, enter the variable name in the Command Window, …

  4. MATLAB Easiest way to assign elements of a vector to individual ...

    May 8, 2025 · How do I do multiple assignment in MATLAB? So let's say I have a vector p = [1 2 3]. I want a command that looks like this: [x y z] = p; so that x = p(1), y = p(2), and z = p(3). Is …

  5. Create and Edit Variables - MATLAB & Simulink - MathWorks

    You can create new variables in the workspace by running MATLAB code or using existing variables. To create a new variable, enter the variable name in the Command Window, …

  6. How to assign a value to a variable in MATLAB? - Namso gen

    Sep 27, 2024 · To assign values to variables in a matrix in MATLAB, you can use indexing to access specific elements of the matrix and modify their values. This allows you to update …

  7. setfield - Assign value to structure array field - MATLAB

    Assign values to elements of S.a using the setfield function. To assign values to particular elements, specify indices after the name of the field. You must specify the indices within a cell …

  8. Detailed Rules for Indexed Assignment - MATLAB & Simulink …

    If you use repeated indices in a subscript vector to access array elements and assign new values to them, then MATLAB follows the order of the provided indices from left to right (for a row …

  9. How can I assign a new value to a function argument in matlab?

    Dec 11, 2017 · Changing function's argument with these changes being seen outside of the funtion's scope is called passing by reference. Matlab passes data variables by value except …

  10. Assigning value to an array - MATLAB Answers - MATLAB

    Jan 2, 2011 · I want to assign value to an array. For example: Now, I wanna assign the value A (2 10 12)=20 to the same array. But, value of the new array will be the sum of previous if the …

  11. Some results have been removed
Refresh