About 530,000 results
Open links in new tab
  1. How do I access a base workspace variable from within a MATLAB function

    Jun 27, 2009 · The EVALIN function allows you to evaluate commands in two specified workspaces: 'base' (MATLAB's base workspace), and 'caller' (the workspace where the …

  2. Use workspace variables in a Matlab function - Stack Overflow

    Apr 8, 2014 · I'd like to use the data that are loaded to my workspace in a Matlab function. This is the beginning of my function. I'm getting an error: Undefined function or variable 'data'. Where …

  3. Pass variable to Matlab-Function Simulink block from Matlab workspace ...

    Oct 14, 2019 · To access base workspace variables from the MATLAB function block. There are a number of options to do so: 1) Use Data Store Memory to import Simulink.Signal objects.

  4. How can I get workspace variables in MATLAB Function?

    Sep 6, 2014 · Whether or not the above works, it's not the right way to get data into the block. You should load the variable into the MATLAB Workspace prior to starting the simulation, then …

  5. How can I call the variables of MATLAB workspace from a function?

    Mar 15, 2019 · I am trying to create a .mat file from inside a function that doesn't stores all the variables from the workspace of the function but rather it stores all the variables from the …

  6. Block callback function in Simulink model cannot access workspace ...

    Basically, transfer variables from the base workspace of Matlab to the base workspace of the worker, run the simulation on the worker where the assertion callback updates the count …

  7. Issues with other scripts accessing workspace variables - MATLAB ...

    Mar 24, 2025 · I have pre-defined a set of variables in one .m file and written a function in another file that needs to use some of these variables. I ran the variables file, can see the variables …

  8. Share Data Between Workspaces - MATLAB & Simulink

    Local variables are not available at the command line or to any other function. However, there are several ways to share data between functions or workspaces. The most secure way to extend …

  9. How to access and change variables in workspace - MATLAB

    I need to access variables in a workspace which are in a workspace down the stack. And I need to do this in a function - Thus, start the debugger, select the workspace manually and change …

  10. Matlab navigate function workspace - Stack Overflow

    Sep 12, 2013 · You can use dbstack to get a list of workspaces, however it is not possible to go access those with evalin. I am looking for a way to access variables from other workspaces, in …