Get dimensions for dataset matlab, Size Function

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-05-04T12:07:32Z Indexed on 2010/05/04 12:38 UTC
Read the original article Hit count: 202

Filed under:
|
|

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)

© Stack Overflow or respective owner

Related posts about matlab

Related posts about size