About 165,000 results
Open links in new tab
  1. 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, …

  2. How do I define a variable without assigning it a value? - MATLAB ...

    Mar 19, 2023 · MATLAB is a dynamically typed language. You create the variable by assigning it a value. You don't need to create or type it ahead of time like you do in compiled languages …

  3. Variable declaration in matlab - MATLAB Answers - MATLAB

    Mar 5, 2012 · In older versions of MATLAB, int32(12) worked by having 12 evaluated in double precision first, creating a temporary (nameless) double precision variable. That temporary …

  4. global - Declare variables as global - MATLAB - MathWorks

    Ordinarily, each MATLAB ® function has its own local variables, which are separate from those of other functions and from those of the base workspace. However, if several functions all …

  5. Create Symbolic Numbers, Variables, and Expressions

    If you want to create a MATLAB array of numbered symbolic variables, you can use the sym or the syms syntax. Use sym to create an array of many numbered symbolic variables. Clear the …

  6. Integers - MATLAB & Simulink - MathWorks

    MATLAB stores numeric data as double-precision floating point (double) by default. To store data as an integer, you need to convert from double to the desired integer type. Use one of the …

  7. integer variable - MATLAB Answers - MATLAB Central - MathWorks

    integer variable. Learn more about variables . in newer versions you might write zeros(10, 1, 'int16'): esp. interesting for large arrays, since it doesn't generate a double array first and …

  8. persistent - Define persistent variable - MATLAB - MathWorks

    Code at the MATLAB ® command line and in other functions cannot change persistent variables. When MATLAB first encounters a particular persistent statement, it initializes the persistent …

  9. Is it possible to create constant variables in MATLAB?

    Sep 6, 2012 · The ability to create constant variables is not available in previous versions of MATLAB. To work around this, you can create a function with the same name as the constant …

  10. Define a variable without assigning a value - MATLAB Answers

    May 24, 2020 · Define a variable without assigning a value. Learn more about symbolic Symbolic Math Toolbox

Refresh