當前位置:編程學習大全網 - 編程軟體 - fluent裏面的數據如何導入matlab裏面

fluent裏面的數據如何導入matlab裏面

第壹種方法,妳可以使用xlsread函數來讀取fluent中的數據

第二種方法,就是把字符轉化為數字,使用函數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.

  • 上一篇:請全班同學吃烤鴨,意思是考試給鴨子加油。如何看待這位老師的做法?
  • 下一篇:朗逸abs打氣筒怎麽搭配
  • copyright 2024編程學習大全網