How to check the usage of a MATLAB workspace 5

Updated on number 2024-04-10
12 answers
  1. Anonymous users2024-02-07

    Enter whos directly in the command window

  2. Anonymous users2024-02-06

    For example, in the simplest case, for a numeric matrix, you can directly enter the variable name and press enter to see it. For more complex ones, such as structs, it can be used.

    openvar (variable name).

    The variable is opened in a window, and you can modify the value of some elements or fields of the variable.

  3. Anonymous users2024-02-05

    This is difficult to display in the workspace.

    You can type diary before running the program, so that the output content will be saved to the log text, and then go to the work folder to find the log text to see if the output is not Chunguo Zheng Chazhen.

  4. Anonymous users2024-02-04

    The landlord can name folders and files with numbers, and then use the string function in MATLAB to turn the looped variables into strings, and use the strcat function to merge them into the path.

    As a simple example, if you want to read a jpg file named 1 10 in folder "1", you can use the following program:

    x=zeros(10,200);

    for i=1:10

    url=strcat('c:\1\',num2str(i));

    url=strcat(url,'.jpg');

    x(i)=imread(url);

    The above end is to open 10 ** programs, you use two loops, you can open the file with the folder name 1 10, the file name 1 40.

  5. Anonymous users2024-02-03

    The workspace is where the variables are stored in MATLAB, and you can use imread( in the command window'Your ** name')

    Or double-click to import.

  6. Anonymous users2024-02-02

    Open the workspace with the down arrow icon for importing.

  7. Anonymous users2024-02-01

    Save the MAT file first, look at the size, and then delete the file.

  8. Anonymous users2024-01-31

    whos variable

    You can view the amount of memory occupied.

  9. Anonymous users2024-01-30

    You can use global variables. For example, you declare a global variable global a in one of the functions of the GUI;

    Then, you write global a again in the command window;

    At this point, you run the GUI, and if A has a value, it will appear in the workspace.

  10. Anonymous users2024-01-29

    assignin

    assignin(ws,'var', Val) "Simulink and Signal Processing".

    Specify the value val for the variable var in the workspace. If the variable var does not exist, the variable is created and assigned a value. The value of ws can be:'base'or'caller', which represents the base workspace of MATLAB or the caller workspace where the AssignIn function is called.

    The assignin function can be used in the following cases:

    1) Import data from the function into the MATLAB basic workspace.

    2) In the function, change the value of the variable defined in the function workspace (such as the variable in the function variable list).

  11. Anonymous users2024-01-28

    How to look at this question seems to be translated from English.

  12. Anonymous users2024-01-27

    This is difficult to display in the workspace, you can type diary before running the program so that the output will be saved to the log text, and then go to the work folder to find the log text to see the output result.

Related questions
6 answers2024-04-10

1. Environmental Engineer.

Job salary: 1-20,000 months (comments: the salary is very high) 2, qualified environmental engineer. >>>More

22 answers2024-04-10

<> is the situation of the company I am working in now, so far, I have been working in this company for more than 4 years, from the busyness and growth when I first came in, now I feel that it is a regression, no growth, no opportunity for further development, where to go This question has been lingering in my mind, and then I still haven't come up with a reason, so I can only continue to stay here. >>>More

17 answers2024-04-10

1. Open the Know Home Page;

2. Select the "Problem Classification" on the left, such as the "Entertainment" file, and click on it; >>>More

8 answers2024-04-10

Only mobile phones can display it.

11 answers2024-04-10

Test the speed of the Internet. 360 comes with it.