-
Enter whos directly in the command window
-
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.
-
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.
-
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.
-
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.
-
Open the workspace with the down arrow icon for importing.
-
Save the MAT file first, look at the size, and then delete the file.
-
whos variable
You can view the amount of memory occupied.
-
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.
-
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).
-
How to look at this question seems to be translated from English.
-
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.
1. Environmental Engineer.
Job salary: 1-20,000 months (comments: the salary is very high) 2, qualified environmental engineer. >>>More
<> 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
1. Open the Know Home Page;
2. Select the "Problem Classification" on the left, such as the "Entertainment" file, and click on it; >>>More
Only mobile phones can display it.
Test the speed of the Internet. 360 comes with it.