Tablas
Una table
(tabla) es un tipo de dato adecuado para datos orientados a columnas o datos tabulares que suelen almacenarse como columnas en un archivo de texto o en una hoja de cálculo. Las tablas constan de filas y variables orientadas a columnas. Cada variable en una tabla puede tener un tipo de datos y un tamaño diferente, con la única restricción de que cada variable debe tener la misma cantidad de filas. Para obtener más información, consulte Crear tablas y asignarles datos o vea Tablas y arreglos categóricos.
Funciones
Apps
Data Cleaner | Preprocess and organize column-oriented data (desde R2022a) |
Tareas de Live Editor
Compute by Group | Summarize, transform, or filter by group in the Live Editor (desde R2021b) |
Join Tables | Combine two tables using key variables in the Live Editor (desde R2019b) |
Stack Table Variables | Combine values from multiple table variables into one table variable in the Live Editor (desde R2020a) |
Unstack Table Variables | Distribute values from one table variable to multiple table variables in the Live Editor (desde R2020a) |
Temas
- Crear tablas y asignarles datos
Hay varias formas de crear tablas y asignarles datos. Puede crear tablas a partir de arreglos de entrada, asignar previamente tablas y rellenarlas más tarde, o importar tablas a partir de archivos de texto u hojas de cálculo.
- Control How MATLAB Imports Your Data
If you want to control the import process beyond the options provided by the
readtable
function, such as defining how to handle missing data or errors, then create an import options object before importing the data. - Acceder a datos en tablas
Indexar en tablas con paréntesis, notación de puntos y llaves permite acceder a los datos de las tablas de diferentes formas. Puede utilizar la indexación para crear una tabla que sea un subconjunto de una tabla más grande o para crear un arreglo a partir de los datos de una tabla.
- Rename and Describe Table Variables
- Agregar, eliminar y reorganizar las variables de una tabla
- Agregar y eliminar filas de una tabla
- Limpiar datos confusos y datos ausentes en MATLAB
- Using Row Labels in Table and Timetable Operations
- Convertir texto en variables de tablas a un arreglo categórico
- Add Custom Properties to Tables and Timetables
- Direct Calculations on Tables and Timetables
You can perform calculations directly on tables and timetables without indexing to extract their data. All the variables in your tables and timetables must have data types that support calculations.
- Plots That Support Tables
Create plots by passing tables directly to plotting functions.
- Advantages of Using Tables
Use tables to store mixed-type data conveniently, access data with numeric or named indexing, and to store metadata.
- Changes to DimensionNames Property in R2016b
Tables can raise compatibility warnings, and change dimension names, when you modify the DimensionNames property.