La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
Variables del área de trabajo y archivos MAT
El área de trabajo contiene variables creadas en MATLAB o importadas a esta plataforma desde archivos de datos u otros programas. Es posible ver y editar el contenido del área de trabajo en el navegador del área de trabajo o en la ventana de comandos. Para obtener más información, consulteCreate and Edit Variables.
Las variables del área de trabajo no se mantienen al salir de MATLAB. Para usar los datos en varias sesiones, guárdelos en un archivo comprimido con una extensión.mat
(Conocido como档案垫)。Para RestableCer Los Datos Guardados,Cargue Un Archivo Mat de Vuelta en Matlab。para obtenermásinformación,咨询Save and Load Workspace Variables.
Funciones
load |
Load variables from file into workspace |
save |
Save workspace variables to file |
matfile |
Access and change variables in MAT-file without loading file into memory |
disp |
Mostrar el valor de una variable |
formattedDisplayText |
Capture display output as string |
who |
List variables in workspace |
whos |
List variables in workspace, with sizes and types |
clear |
Remove items from workspace, freeing up system memory |
clearvars |
Clear variables from memory |
openvar |
Open workspace variable in Variables editor or other graphical editing tool |
Workspace Browser | Open Workspace browser to manage workspace |
Temas
- Create and Edit Variables
Create, edit, and copy variables in the MATLAB workspace, in the Command Window or using the Workspace browser and Variables editor.
- Save and Load Workspace Variables
Save some or all variables in the current workspace and reload the variables later during the current MATLAB session, or during another session.
- Display Statistics in the Workspace Browser
For each variable or object, the Workspace browser can display statistics such as the min, max, and mean, when relevant.
- Workspace and Variable Preferences
Set preferences for the Workspace browser and Variables editor.
- Versiones de archivos MAT
Hay varias versiones de archivos MAT, cada una de las cuales admite un conjunto cada vez mayor de funcionalidades, a partir de la versión 4 de los archivos MAT.
- Compare and Merge MAT-Files
View and merge changes between two MAT-files.
Solución de problemas
Unexpected Results When Loading Variables Within a Function
If you have a function that loads data from a MAT-file and find that MATLAB does not return the expected results, check whether any variables in the MAT-file share the same name as a MATLAB function.