I really need some help directing me to where I can find the answers. MATLAB just saying there is an issue when it runs doesn't help.
I am trying to build a report row selection tool that has all the possible row text that matches the numeric data. I have a corresponding row "table or some data type MATLAB doesn't get" with text and a column with 1/0 to tell what to report. If a 1, report, if 0 then skip that row. The associated data "structure" has all the rows and over many years. It is not a timetable, just data to report based on the users selection setting the 1/0 to what they want to see. There are 155 total rows in these tables.
I'm seeing that data type conversion DOESN'T work, and I need to understand why so I don't have this issue in the future. And I haven't found anything in the help or Community or searching to answer why.
So here is my issue. I'm setting the "indices" to report via the find on the selection "table or structure or whatever it is".
>> indices = find(Rpt_row_sel(:, 2)==0);
MATLAB says "Undefined operator '==' for input arguments of type 'table'."
Why doesn't it work with tables? I have text in column 1 and a number in column 2. If column 2 is a 0, then that row doens't get reported.
So I converted it to all cells in y.
>> y = table2cell(Rpt_row_sel);
>> indices = find(y(:, 2)==0);
Undefined operator '==' for input arguments of type 'cell'.
It still doesn't work. What is the issue with MATLAB not doing what it should do? There is no confusion. If there is, then MATLAB should tell what the confusion is.
Thanks for educating me as I'm just not getting this data type issue stuff.