爱问知识人 爱问教育 医院库

excel的数据怎么导入MATLAB中的回调函数怎么?

首页

excel的数据怎么导入MATLAB中的回调函数怎么?

excel的数据怎么导入MATLAB中的回调函数怎么写

提交回答
好评回答
  • 2014-05-09 01:17:59
      第一种方法,你可以使用xlsread函数来读取excel中的数据
    第二种方法,就是把字符转化为数字,使用函数str2num
    xlsread的使用
    EXAMPLES:
        1。 Default operation:  
           NUMERIC = xlsread(FILE);
           [NUMERIC,TXT]=xlsread(FILE);
           [NUMERIC,TXT,RAW]=xlsread(FILE);
     
        2。
       Get data from the default region: NUMERIC = xlsread('c:\matlab\work\myspreadsheet') 3。 Get data from the used area in a sheet other than the first sheet: NUMERIC = xlsread('c:\matlab\work\myspreadsheet','sheet2') 4。
       Get data from a named sheet: NUMERIC = xlsread('c:\matlab\work\myspreadsheet','NBData') 5。 Get data from a specified region in a sheet other than the first sheet: NUMERIC = xlsread('c:\matlab\work\myspreadsheet','sheet2','a2:j5') 6。
       Get data from a specified region in a named sheet: NUMERIC = xlsread('c:\matlab\work\myspreadsheet','NBData','a2:j5') 7。
       Get data from a region in a sheet specified by index: NUMERIC = xlsread('c:\matlab\work\myspreadsheet',2,'a2:j5') 8。
       Interactive region selection: NUMERIC = xlsread('c:\matlab\work\myspreadsheet',-1); You have to select the active region and the active sheet in the EXCEL window that will come into focus。
       Click OK in the Data Selection Dialog when you have finished selecting the active region。 以上是对这个问题的回答,希望对您有帮助。

    我***

    2014-05-09 01:17:59

类似问题

换一换
  • 办公软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):