Questions tagged [matlab-table]

Fro questions about MATLAB's table data class.

Mathworks tables documentation

136 questions
1
vote
1 answer

How to give a title to a matlab table?

I have a few tables, that after producing within the command window I need to print-screen into a word document. Is it possible to give the table a title so it does not need further labelling within the report. Or is there a way to remove where it…
george
  • 188
  • 12
1
vote
2 answers

Do MATLAB tables remove the need for dictionaries?

MATLAB tables let you index into any column/field using the row name, e.g., MyTable.FourthColumn('SecondRowName'). Compared to this, dictionaries (containers.Map) seem primitive, e.g., it serves the role of a 1-column table. It also has its own…
user2153235
  • 388
  • 1
  • 11
1
vote
1 answer

Importing Data from a .txt file into Matlab

First of all thank you for reading my question. I am trying to import data from a file with following format into Matlab: #Text #Text: Number ... #Text: Number Set1: 1 2 3 4 Set2: 5 6 7 8 ... I would like to get those…
Quanton
  • 13
  • 3
1
vote
1 answer

How can I append my rows in a table to continuously record my data using MATLAB?

I have two programs. one is reading some data from UR5 robot while the other is reading data from a sensor. I need to collect these data into a table as I carry out some industrial task. I was able to generate table for each program when they were…
1
vote
1 answer

Changing column names for an existing table

I have the following table in MATLAB: A= 86 84 45 65 2 42 44 29 MATLAB automatically returns for this table the column names A1 and A2, with A being the set name of the table, for the two columns. How can I manually…
Zed Kay
  • 133
  • 1
  • 2
  • 13
1
vote
1 answer

How to assign the same value to all table cells in a column in a table in Matlab?

I tried myTable.MyField{:}='AAA' myTable.MyField(:)='AAA' myTable.MyField{:}={'AAA'} myTable.MyField{:}=deal('AAA') but all failed. Is there any way?
Dims
  • 47,675
  • 117
  • 331
  • 600
1
vote
1 answer

Fastest way to convert numerical table values to character arrays

I have a table which contains various data types. For instance, chars = {'a'; 'bc'; 'de'}; nums = [1; 20; 300]; tbl = table(chars, nums); I want to convert all numerical columns to character array variables. By this, I mean the result should be…
Wolfie
  • 27,562
  • 7
  • 28
  • 55
1
vote
2 answers

How can I use matlab table (array with named variables) in octave

In Octave I code: T = table([10;20],{'M';'F'},'VariableNames',{'Age','Gender'},'RowNames',{'P1','P2'}) From the example on this website: https://www.mathworks.com/help/matlab/ref/table.html And get error: 't' undefined near line 1 column 1 >> [T,…
pashute
  • 3,965
  • 3
  • 38
  • 65
1
vote
2 answers

Convert the contents of columns containing numeric text to numbers

I have a csv file that consists of text or number. But some columns are corrupted as seen in the image below("<<"K.O). When I open the csv file via Matlab (without importing), it converts them to number and define undefined values such as "<<"K.O as…
Pumpkin
  • 209
  • 2
  • 12
1
vote
1 answer

Matlab - Extracting rows with specfic column value from table

I'm trying to figure out how to extract rows from a table if a certain variable of a row has a certain value. I know how to do this in R but can't figure it out in Matlab. For example, let's say this is my table: Var1 Var2 Var3 _____ _____ …
upgrayedd
  • 129
  • 11
1
vote
1 answer

Select rows from a table based on conditions in two columns

Let us assume we have the following table mytable: Name id Factor Correct ___________________________________________ ________ _________ ____________ 'Maria' …
Dino C
  • 307
  • 3
  • 15
1
vote
1 answer

MATLAB Column headers not valid variable name

I am working in MATLAB and trying to add units to the Column headers to a table of values then I will insert into SQLite Database but I have a column names of German characters (e.g 'ß', 'ä'), but this is invalid because of the special characters.…
1
vote
1 answer

How can I merge tables with different numbers of rows?

I'm currently trying to create a signal process diagram in MATLAB. In order to do this, I have 3 tables that I would like to plot different signals from that would require merging in order to be plotted on the same graph (but separated out so to see…
Matt Griffin
  • 75
  • 4
  • 12
1
vote
2 answers

How to make a bar chart, with x-labels and legend, directly from a table of listed data

I have a data table tb that looks something like this, which I want to turn into a bar chart. N X P ________ ______ ______ 0 5 15.314 0 10 36.288 0 13 7.1785 1 5 …
teepee
  • 2,620
  • 2
  • 22
  • 47
1
vote
1 answer

How can I create a variable number of column headers in a table?

What I essentially want is for the headers "Var1", ..., "VarN" to be called "Student no.", "Name", "Assignment 1", ..., "Assignment N-2" I've tried messing around with the T.properties.Variablenames field, but can't seem to make it work (I can…
John H
  • 11
  • 1