Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

why textscan display just 12 values?

Asked by huda nawaf on 1 Aug 2012

hi, I used textscan in this code , the txtfile that I want to read it has 3900 values , why I got just 12 values?

f1=fopen('d:\matlab\r2011a\bin\movielens\1m_mov\movies.txt');
      cac = textscan( f1, '%d %s %s'                       ...
                  ,   'Delimiter'             ,   ':'     ...
                  ,   'CollectOutput'         ,   false    ...
      ...         ,   'EmptyValue'            ,   -999    ...
                  ,   'ExpChars'              ,   ''      ...
                  ,   'MultipleDelimsAsOne'   ,   true    ... 
                  ,   'Whitespace'            ,   ''      );
      fclose( f1 )

thanks in advance c1=cac{1};c2=cac{2};c3=cac{3};

0 Comments

huda nawaf

Tags

Products

No products are associated with this question.

0 Answers

Contact us