uiimport help
Hi,
I have a problem, I am using the uigetfile and uiimport to load a dataset file. after loading the dataset file I would like the output of the dimensions ie rows and column.
with the following code I am getting the wrong dimensions……..
[input_file,pathname
] =
uigetfile( ...
{'*.txt',
'Text (*.txt)';
...
'*.xls',
'Excel (*.xls)';
...
'*.*',
'All Files (*.*)'},
...
'Select files');
uiimport
(input_file
)
[pathstr, name, ext, versn
] =
fileparts(input_file
)
r =
size(name,
1);
% number of rows
c =
size(name,
2);
% number of columns
disp(r
) % Output
disp(c
) % Output
Your help would be very much appreciated. Thank you.