137 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
141
views
Python read matlab .mat file containing table
I'm trying to read a matlab .mat file (v7.3) from python. The thing is one of the field in the .mat object is a table (7x6) with named columns, and every time I read the object I only get a 1x6 array ...
1
vote
1
answer
57
views
Why are my table columns not named properly?
I need to make a table that has column names "Radii", "SurfaceA", and "Volume". But when I display the table it names the columns "Var1", "Var2", and &...
2
votes
1
answer
69
views
Splitting up a matlab table in vectors
i'm fairly new to matlab and i'm looking for a way to evaluate data in a table. There's an excel table as illustration attached.
My measurements are savedin a txt-file divided by cycle numbers. All ...
0
votes
1
answer
65
views
What is the difference between readall and read+hasdata?
I found that the functions of readall and read+hasdata seem to be exactly the same. read+hasdata is a loop body, is it less efficient? So in any case you should avoid using read+hasdata? Why does ...
2
votes
1
answer
120
views
Iterate through a CSV and assign data into new tables, based on unique IDs
I'm attempting to iterate through a CSV file and assign the data within each row into new tables, based on unique IDs. The unique IDs are found within the 'Unit' column - please find the formatting of ...
0
votes
1
answer
777
views
Matlab add string variable as column in table
I'm trying to use YOLOv4 in MATLAB R2022b to carry out detections on all images in a directory, and append results to a text file.
I can append just the detection results to each line, but when I try ...
2
votes
2
answers
133
views
Rearrange MATLAB table variables (Release 2016)
I have a table in MATLAB with variable titles equal to:
titles = {'TZ_1', 'TZ_2', 'TZ_3', 'DATE'};
Is there any way to move change the data to have the DATE before TZ_1?
titles = {'DATE', 'TZ_1', '...
0
votes
1
answer
81
views
Plotting continuous (not overlapping) timeseries data from different files on one graph in Matlab
I am writing Matlab code to open date files from a continuous air sampling instrument and could use help cleaning it up/formatting the plots correctly.
This is my code currently,
#importing data
A101 ...
0
votes
1
answer
125
views
Why do I get a complex number when I use 'uitable' in MATLAB?
I have data file included both type of numbers, real (fractions and integers) and complex. But when I use 'uitable' all data will turn to be complex (of course 0i as imaginary part). see the figure
...
1
vote
1
answer
113
views
Unstacking with 2 conditions
I am using MATLAB 2021b and I have the following data:
ID = {'a','a','a','a','b','b','b','b'}';
DATE = [2010,2010,2011,2011,2011,2011,2012,2012]';
FIELD_ID = {'f1','f2','f1','f2','f1','f2','f1','f2'...
1
vote
1
answer
150
views
Count up variable/table name with while loop
I'm reading multiple tables with the same measurement variable. I want to compare the variables of tables with each other. Because there are so many tables and with each one I'm doing the same things, ...
0
votes
0
answers
914
views
convert MATLAB table column from array of doubles to string
I'm having trouble converting a column in my MATLAB table. Each row of this column contains a 802x1 double. For each row in this column, I'd like to merge all of the numbers into one large string (...
0
votes
1
answer
173
views
Creating Table with proper format in Matlab for YOLO v3 example?
Matlab has a fairly extensive suite of examples for object detection using Neural Networks.
In the YoloV3 example, the tools need as input a table with a particular format. I have a custom dataset, ...
1
vote
1
answer
6k
views
Have Matlab's "readtable" recognize column headings?
I have the following CSV file with column headings on line 1:
Test.csv
--------
Prj , Cap
A , 1
A , 2
H , 4
H , 5
I tried to read this into a table, but I'm having trouble making ...
2
votes
2
answers
309
views
Creating mesh from 3-column table in matlab
I have a table with values extracted from a csv I want to make a contour plot from.
Let's use this table as an example
tdata.x = [1;2;1;2];
tdata.y = [3;3;4;4];
tdata.z = randn(4,1);
tdata=...