zoukankan      html  css  js  c++  java
  • MATLAB importdata函数返回值类型

    importdata函数是MATLAB中I/O文件操作的一个重要函数。需要注意的是,针对不同的文件内容,importdata函数的返回值类型也有所不同。

    MATLAB帮助文档中的详细说明如下:

    Based on the file format, importdata selects and calls a helper function to read the data. When the helper function returns more than one nonempty output, importdata combines the outputs into a struct array.

    For ASCII files and spreadsheets, importdata expects to find numeric data in a rectangular form (that is, like a matrix). Text headers can appear above or to the left of the numeric data, as follows:

    Column headers or file description text at the top of the file, above the numeric data.

    Row headers to the left of the numeric data.

    To import ASCII files with nonnumeric characters anywhere else, including columns of character data or formatted dates or times, use textscan instead of importdata. For more information, see Import Mixed Text and Numeric Data from a Text File.

    When importing spreadsheets with columns of nonnumeric data, importdata cannot always correctly interpret the column and row headers.

    If the ASCII file or spreadsheet contains either column or row headers, but not both, importdata returns a colheaders or rowheaders field in the output structure, where:

    colheaders contains only the lowest line of column header text. importdata stores all text in the textdata field.

    rowheaders is created only when the file or worksheet contains a single column of row headers.

  • 相关阅读:
    兼容ie6浏览器窗口四角固定背景代码
    实用的js判断浏览器类型及版本
    测试
    C#动态获取鼠标位置的颜色
    对指定的网页进行截图
    C#中使用 SendMessage 向非顶端窗体发送组合键
    ProtelDXP练习作品51单片机最小系统
    对非顶端窗口截图
    C#直接操作并口
    单片机实现的数字钟
  • 原文地址:https://www.cnblogs.com/yuthreestone/p/3557351.html
Copyright © 2011-2022 走看看