国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 工具軟件 > 辦公軟件學(xué)習(xí) > Excel教程 > Excel基礎(chǔ) > matlab讀取excel數(shù)據(jù)的方法步驟詳解

    matlab讀取excel數(shù)據(jù)的方法步驟詳解

    時(shí)間: 業(yè)華773 分享

    matlab讀取excel數(shù)據(jù)的方法步驟詳解

      在Excel中錄入好數(shù)據(jù)以后經(jīng)常需要被matlab讀取,具體該如何讀取呢?下面是由學(xué)習(xí)啦小編分享的matlab讀取excel數(shù)據(jù)的方法,以供大家閱讀和學(xué)習(xí)。

      matlab讀取excel數(shù)據(jù)的方法

      matlab讀取Excel數(shù)據(jù)步驟1:如果數(shù)據(jù)文件為excel文件(xls或者xlsx格式的文件),如下圖所示的數(shù)據(jù)文件


    matlab讀取excel數(shù)據(jù)的方法圖1

    matlab讀取excel數(shù)據(jù)的方法圖2

      matlab讀取Excel數(shù)據(jù)步驟2:我們只需要使用MATLAB中提供的系統(tǒng)函數(shù)xlsread函數(shù)即可,其主要的調(diào)用形式為:

      a=xlsread('filename.xls');

      matlab讀取Excel數(shù)據(jù)步驟3:其中a表示讀入文件所保存的變量名稱(chēng),filename.xls(或者filename.xlsx)表示excel數(shù)據(jù)文件,help幫助文檔中對(duì)xlsread函數(shù)的介紹如下圖所示:


    matlab讀取excel數(shù)據(jù)的方法圖3

      matlab讀取Excel數(shù)據(jù)步驟4:對(duì)于上圖所示的數(shù)據(jù)文件,我們只需要使用下面的命令進(jìn)行讀取即可:

      A = xlsread('data.xlsx');


    matlab讀取excel數(shù)據(jù)的方法圖4

      matlab讀取Excel數(shù)據(jù)步驟5:如果數(shù)據(jù)文件保存在excel的某個(gè)sheet中,我們的使用方式為:

      A = xlsread('data.xlsx','Sheet1');


    看了matlab讀取excel數(shù)據(jù)的方法還看了:

    1.如何將excel中的數(shù)據(jù)導(dǎo)入matlab的教程

    2.怎么將Excel數(shù)據(jù)導(dǎo)入MATLAB中

    3.如何將excel中通訊錄導(dǎo)入手機(jī)的方法

    4.怎么把excel導(dǎo)入到ppt中

    5.如何將pdf格式轉(zhuǎn)換成excel格式的教程

    6.如何把excel導(dǎo)入手機(jī)通訊錄的方法

    7.如何將excel文件轉(zhuǎn)換成pdf文件的方法

    697592