La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
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 Create Tables and Assign Data to Them o vea Tablas y arreglos categóricos.
Funciones
Tareas de Live Editor
Join Tables | Combine two tables using key variables in the Live Editor |
Stack Table Variables | Combine values from multiple table variables into one table variable in the Live Editor |
Unstack Table Variables | Distribute values from one table variable to multiple table variables in the Live Editor |
Temas
- Create Tables and Assign Data to Them
There are several ways to create tables and assign data to them. You can create tables from input arrays, preallocate tables and fill them in later, or import tables from text files or spreadsheets.
- Add and Delete Table Rows
- Add, Delete, and Rearrange Table Variables
- Clean Messy and Missing Data in Tables
- Modify Units, Descriptions, and Table Variable Names
- Add Custom Properties to Tables and Timetables
- Convert Text in Table Variables to Categorical
- Using Row Labels in Table and Timetable Operations
- Define Import Options for Tables
- Access Data in Tables
Indexing into tables with parentheses, dot notation, and curly braces accesses table data in different ways. You can use indexing to create a table that is a subset of a larger table or to create an array from data in a table.
- Plots That Support Tables
Create plots by passing tables directly to plotting functions.
- Calculations on Data in Tables
Perform arithmetic operations and call functions on data or groups of data in tables.
- 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.