Hi,
OMERO.tables is really an API for creating and querying hdf files in OMERO. These tables are not part of the OMERO relational database, although that database is used to store a reference to the OMERO.tables files.
You can use annotations of various types to store any metadata that you have. These include Comment/text, File Annotation, Tag, Map Annotation (ordered list of Key/Value pairs), Long Annotation, etc. You can link annotations to Images or Datasets or even other Annotations.
So, you could create a Dataset and link all the raw table data to that Dataset.
Then subsequently retrieve this data and create images in this Dataset (or create a new one if desired).
Rows in an OMERO.table can be assigned to Images by using an "omero.grid.ImageColumn" instead of a LongColumn for Image IDs, and by convention we attach the OMERO.table as a File Annotation on the parent Dataset. However, there's no sql query that can tell you if there are any tables that have rows relating to a particular Image.
There's a python example at
https://docs.openmicroscopy.org/omero/5 ... ero-tables which could be converted to using numpy arrays. Let us know if you need help with this.
Hope that helps,
Will.
PS: I'll refer your Matlab question to others' who have more experience to that...