matlab whos
时间: 2023-10-16 08:22:00 浏览: 80
`whos` is a command in MATLAB that displays information about the variables currently in the workspace, including their size, data type, and memory usage.
For example, if the workspace contains three variables named `x`, `y`, and `z`, you can use the `whos` command to display information about them as follows:
```
>> whos
Name Size Bytes Class Attributes
x 1x10 80 double
y 3x3x2 144 double
z 100x100 80000 uint8
```
This output shows that `x` is a row vector with 10 elements of type `double`, `y` is a 3D array with dimensions 3x3x2 and type `double`, and `z` is a 2D array with dimensions 100x100 and type `uint8`. It also shows the memory usage of each variable in bytes.
阅读全文