Get dimensions for dataset matlab, Size Function
- by Tim
Hello I have been trying to display the dimensions of a dataset, below is the following matlab code that i used...but it gives me the wrong output....i'e number of rows and columns values are wrong....any help regarding this issue would be highly appreciated
[file_input,pathname] = uigetfile( ...
{'*.txt', 'Text (*.txt)'; ...
'*.xls', 'Excel (*.xls)'; ...
'*.*', 'All Files (*.*)'}, ...
'Select files');
[pathstr, name, ext, versn] = fileparts(file_input)
r = size(name,1);
c = size(name,2);
disp(r)
disp(c)