Skip to Main Content Skip to Search
Product Documentation

cols - Retrieve number of columns in fetched data set

Syntax

numcols = cols(curs)

Description

numcols = cols(curs) returns the number of columns in the fetched data set curs.

Examples

Display three columns in the fetched data set curs.

numcols = cols(curs)

numcols =
     3

See Also

attr | columnnames | columnprivileges | columns | cursor.fetch | get | rows | width

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS