store images in a table
Hello,
I have three images and want to store them in a table. I wrote this in command line:
dinfo = dir(‘*.jpg’);
T = table();
for K = 1 : length(dinfo)
filename = dinfo(K).name;
filecontent = imread(filename);
T{filename,1} = filecontent;
end
It gives the error:
To assign to or create a variable in a table, the number of rows must match the height of the table.
Secondly, I want to make my three images equal in size, as we have to make the size of variables in rows equal for tables.
Help needed. Thanks in advance.Hello,
I have three images and want to store them in a table. I wrote this in command line:
dinfo = dir(‘*.jpg’);
T = table();
for K = 1 : length(dinfo)
filename = dinfo(K).name;
filecontent = imread(filename);
T{filename,1} = filecontent;
end
It gives the error:
To assign to or create a variable in a table, the number of rows must match the height of the table.
Secondly, I want to make my three images equal in size, as we have to make the size of variables in rows equal for tables.
Help needed. Thanks in advance. Hello,
I have three images and want to store them in a table. I wrote this in command line:
dinfo = dir(‘*.jpg’);
T = table();
for K = 1 : length(dinfo)
filename = dinfo(K).name;
filecontent = imread(filename);
T{filename,1} = filecontent;
end
It gives the error:
To assign to or create a variable in a table, the number of rows must match the height of the table.
Secondly, I want to make my three images equal in size, as we have to make the size of variables in rows equal for tables.
Help needed. Thanks in advance. matlab tables, table, database MATLAB Answers — New Questions