Are table operations consistent with the syntax and behaviour seen in matrix operations?
For example, with a matrix, I can do something like this:
>> MyMat = [1,2;3,4];
MyMat(3,1) = 5
MyMat =
1 2 3 4 5 0
As you can see, it automatically generates 0 in the 3rd column of the 2nd row. Do tables follow the same consistent syntax and behaviour?
Secondly, how can I introduced mixed data such as a string in a numeric column?
MyTable(5,1) = “asdf” % Is this possible?
How would I introduce different type of structs with varying properties in the same column in tables?
Best Answer