Tabellen
table
ist ein Datentyp, der für spaltenorientierte oder tabellarische Daten geeignet ist. Diese werden oft als Spalten in einer Textdatei oder Kalkulationstabelle gespeichert. Die Tabellen bestehen aus Zeilen und spaltenorientierten Variablen. Jede Variable in einer Tabelle kann einen unterschiedlichen Datentyp und eine andere Größe aufweisen, wobei eine Einschränkung zu beachten ist: Jede Variable muss dieselbe Zeilenanzahl besitzen. Weitere Informationen finden Sie unter Tabellen erstellen und ihnen Daten zuweisen oder sehen Sie sich Tabellen und Kategorie-Arrays an.
Funktionen
Apps
Data Cleaner | Preprocess and organize column-oriented data (Seit R2022a) |
Live Editor Tasks
Berechnen nach Gruppe | Summarize, transform, or filter by group in the Live Editor (Seit R2021b) |
Pivot-Tabelle | Summarize tabular data in pivoted table in the Live Editor (Seit R2023b) |
Zusammenführen von Tabellen | Combine two tables using key variables in the Live Editor |
Stapeln von Tabellenvariablen | Combine values from multiple table variables into one table variable in the Live Editor |
Entstapeln von Tabellenvariablen | Distribute values from one table variable to multiple table variables in the Live Editor |
Themen
- Tabellen erstellen und ihnen Daten zuweisen
Es gibt mehrere Möglichkeiten, Tabellen zu erstellen und ihnen Daten zuzuweisen. Sie können Tabellen aus Eingabe-Arrays erstellen, Tabellen vorbelegen und sie später befüllen oder Tabellen aus Textdateien oder Tabellenkalkulationen importieren.
- 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. - 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.
- Rename and Describe Table Variables
- Add, Delete, and Rearrange Table Variables
- Hinzufügen und Löschen von Tabellenzeilen
- Clean Messy and Missing Data in Tables
- Using Row Labels in Table and Timetable Operations
- Convert Text in Table Variables to Categorical
- 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.
- Tables of Mixed Data
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.