亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gaussread.m

?? 灰色控制 灰色控制 matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [data,varNames] = gaussread(FMT_DHT_FileName , DAT_FileName)
%GAUSSREAD Import GAUSS binary files.
%   Read either of two common GAUSS binary file formats:
%   (1) Binary GAUSS matrix files created with the GAUSS command SAVE. The
%       SAVE command will generate a file with a .FMT file extension, in which 
%       a single matrix is stored in double-precision.
%   (2) Binary GAUSS data set files created with the GAUSS command CREATE or
%       SAVED. The CREATE commands will generate a pair of files: The first is 
%       a descriptor file with .DHT extension that stores header and variable 
%       name information; the second file stores a matrix in either 2-byte 
%       signed integer, 4-byte single-precision, or 8-byte double-precision.
%
%   [DataMatrix , VarNames] = gaussread(FMT_DHT_FileName)
%   [DataMatrix , VarNames] = gaussread(FMT_DHT_FileName , DAT_FileName)
%
%   Optional Input: DAT_FileName
%
% Input:
%   FMT_DHT_FileName - String containing the name of the binary GAUSS matrix 
%     file (usually .FMT extension), or data set descriptor file (.DHT 
%     extension) to read. If the file resides in a directory that is not on 
%     the MATLAB path, then this string must include the full path of the file 
%     (e.g., 'C:\mydata\datasets\DATA.DHT').
%
% Optional Input:
%   DAT_FileName - String containing the name of the binary GAUSS data set 
%     file (probably .DAT extension) associated with the .DHT descriptor file 
%     specified above in 'FMT_DHT_FileName'. If the file resides in a directory
%     that is not on your MATLAB path, then this string must also include the 
%     full path of the file (e.g., 'C:\mydata\datasets\DATA.DAT').
%
% Outputs:
%   DataMatrix - A MATLAB matrix containing the contents of a GAUSS matrix or
%     data set file.
%
%   VarNames - Cell array of variable names associated with each of the columns
%     of the GAUSS data set. Valid ONLY for GAUSS data set files.
%
% Notes:
%   (1) If the required 'FMT_DHT_FileName' file is a GAUSS matrix file, then 
%       'DAT_FileName' is unnecessary and will be ignored even if specified.
%   (2) If the required 'FMT_DHT_FileName' input file is a GAUSS data set
%       descriptor (.DHT) file, then 'DAT_FileName' will be opened and read
%       if it is specified. If 'DAT_FileName' is unspecified, then the .DAT
%       file associated with the .DHT descriptor file will be constructed from 
%       the .DHT file by replacing .DHT extension with .DAT, thus retaining the
%       same filename. For example, if 'DAT_FileName' is not specified and 
%       FMT_DHT_FileName = 'mydata.dht', then DAT_FileName = 'mydata.dat'.
%
% See also PATH, FREAD, FOPEN.

% Copyright 1999-2002 The MathWorks, Inc.   
% $Revision: 1.7 $   $ Date: 1998/01/30 13:45:34 $

%
% Open the specified GAUSS binary file.
%

fid  =  fopen(FMT_DHT_FileName , 'r');

if fid == -1
   error(sprintf(' Cannot open specified ''%s'' GAUSS file.\n' , FMT_DHT_FileName))
end

%
% Read the first 2 bytes of the header to determine the type of file:
%
%     'DDDD' HEX = Simple   Matrix   File Format (.FMT matrix with <= 8190 elements)
%     'EEDD' HEX = Extended Matrix   File Format (.FMT matrix with >  8190 elements)
%
%     'DADA' HEX = Simple   Data Set File Format (.DHT data set with <= 8175 columns)
%     'EEDA' HEX = Extended Data Set File Format (.DHT data set with >  8175 columns)
%
% Reference: GAUSS Volume I: System & Graphics Manual, Chapter 9, page 127-138.
%

[fileFormat , count]  =  fread(fid , 1 , 'uint16');

%
% Call the appropriate decoding function for this type of binary GAUSS file.
%

switch fileFormat

   case {hex2dec('DDDD') , hex2dec('EEDD')}    % FMT matrix files.

      [data,errorFlag] =  readFMT(fid , fileFormat);

      fclose(fid);

      varNames  =  '';

      if errorFlag
         error (' Problem reading GAUSS binary matrix (FMT) file.')
      end

   case {hex2dec('DADA') , hex2dec('EEDA')}    % DHT/DAT data set files.

      if nargin == 1
%
%        Allow the convenience of NOT specifying the GAUSS data (.DAT) file
%        associated with the descriptor (.DHT) file. If the data file is NOT 
%        specified, assume it has the same name and is in the same directory 
%        as the descriptor file, except replace 'DHT' extension with 'DAT'.
%
         DAT_FileName  =  [strtok(FMT_DHT_FileName , '.') '.dat'];
         fDAT          =  fopen(DAT_FileName , 'r');

         if fDAT == -1
            error(' Cannot open GAUSS data set .DAT file')
         end

      else

         fDAT  =  fopen(DAT_FileName , 'r');

         if fDAT == -1
            fclose(fid);
            error(sprintf(' Cannot open specified ''%s'' GAUSS data set DAT file.\n' , DAT_FileName))
         end

      end

      [data,varNames,errorFlag]  =  readDHT(fid , fDAT , fileFormat);

      fclose(fid);
      fclose(fDAT);

      if errorFlag
         error (' Problem reading GAUSS data set (DHT/DAT) files.')
      end

   otherwise

      fclose(fid);

      error (' Invalid File Type: Neither matrix (FMT) nor data set descriptor (DHT) formats.')

end


%
% * * * * * * * * *  End of gauss2ML  * * * * * * * * *
%


function [data,errorFlag]  =  readFMT(fid , fileFormat)
%READFMT Read GAUSS binary matrix files (.FMT extension).
%
% [Data , ErrorFlag] = readFMT(FID , FileFormat)
%
% READFMT reads GAUSS binary matrix files created with the GAUSS command
% SAVE. The SAVE command will generate a file with a .FMT default file 
% extension, in which a single matrix is stored in double-precision. 
% The .FMT file extension may be changed by the user, so interpret any
% references to .FMT as a GAUSS binary matrix file.
%
% Inputs:   
%   FID: File handle of the GAUSS binary matrix (.FMT) file to read. Note 
%      that the main function GAUSS2ML has already opened the matrix file.
%
%   FileFormat: Type of .FMT matrix binary file: 'DDDD' HEX is a simple 
%      matrix file format; 'EEDD' HEX extended matrix file format.
%
% Output:
%   Data: Contents of GAUSS .FMT matrix file converted to a MATLAB matrix.
%
%   ErrorFlag: Error flag indicator = 0 if no error occurrs and = 1 if an
%      error occurred trying to read/decose the binary matrix file.
%

errorFlag  =  0;                       % Intialize to 'No Error' condition.
data       = [];                       % Intialize output matrix placeholder.


if fileFormat == hex2dec('DDDD')       % Simple matrix file format.

%
%  Read the matrix header information contained in the first 16-bytes. Each field is
%  an unsigned 2-byte integer:
%
%       Bytes  0-1  = DDDD HEX identification flag
%       Bytes  2-3  = Number of rows
%       Bytes  4-5  = Number of columns
%       Bytes  6-7  = Size of the file minus the 16-byte header
%       Bytes  8-9  = Data type: '0086' HEX for REAL matrices/'8086' HEX for COMPLEX matrices
%       Bytes 10-15 = Reserved (zero padded)
%

   [header , count]  =  fread(fid , 7 , 'uint16');

   rows      =  header(1);
   columns   =  header(2);
   bytes     =  header(3);
   data_type =  header(4);


elseif fileFormat == hex2dec('EEDD')   % Extended matrix file format.

%
%  Read the matrix header information contained in the first 16-bytes.
%
%       Bytes  0-1  = EEDD HEX identification flag                                            (unsigned 2-byte integer)
%       Bytes  2-3  = File type: '0086' HEX for REAL matrices/'8086' HEX for COMPLEX matrices (unsigned 2-byte integer)
%       Bytes  4-7  = Number of rows                                                          (unsigned 4-byte integer)
%       Bytes  8-11 = Number of columns                                                       (unsigned 4-byte integer)
%       Bytes 12-15 = Size of the file minus this 16-byte header                              (unsigned 4-byte integer)
%

   [data_type , count]  =  fread(fid , 1 , 'uint16');
   [header    , count]  =  fread(fid , 3 , 'uint32');

   rows     =  header(1);
   columns  =  header(2);
   bytes    =  header(3);

end

%
% Read the data & resize the matrix if data consistency exists between the header & body.
%

if data_type == hex2dec('0086')         % REAL Matrix

   [data , count]  =  fread(fid , (rows * columns) , 'double');

   if (rows * columns) == count

      data  =  reshape(data , columns , rows)';

   else

      disp (' ')
      disp (' ERROR: REAL Matrix Inconsistency between Header/Body Information.')
      disp ('        The number of matrix elements expected from the header    ')
      disp ('        does NOT match the number of elements actually read.      ') 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产a| 精品国产免费久久 | 国产精品亚洲第一| 日韩你懂的在线播放| 美日韩黄色大片| 久久综合色婷婷| 国产91精品一区二区麻豆亚洲| 国产欧美一区二区精品性| 成人av免费在线观看| 亚洲人成网站在线| 欧美日韩国产经典色站一区二区三区| 亚洲sss视频在线视频| 日韩欧美一区二区不卡| 国产精品1区二区.| 一区二区三区欧美日| 6080国产精品一区二区| 国产酒店精品激情| 亚洲婷婷综合色高清在线| 欧美日韩午夜在线视频| 韩国一区二区在线观看| 亚洲丝袜精品丝袜在线| 日韩免费观看2025年上映的电影| 国产精品自拍av| 一区二区三区欧美在线观看| 欧美大片一区二区| 91视频一区二区| 美国十次了思思久久精品导航| 国产精品久久久久久久第一福利| 欧美日韩亚洲丝袜制服| 国产成人福利片| 亚洲成a人v欧美综合天堂| 久久综合九色欧美综合狠狠 | 国产精品夜夜嗨| 一区二区三国产精华液| 欧美精品一区二区蜜臀亚洲| 91免费在线视频观看| 韩国毛片一区二区三区| 一区二区三区四区在线播放| 亚洲一二三级电影| 欧美一区二区三区喷汁尤物| 亚洲国产成人午夜在线一区| 国产在线精品一区二区不卡了| 中文字幕中文在线不卡住| 51精品久久久久久久蜜臀| 884aa四虎影成人精品一区| 国产精品2024| 免费在线欧美视频| 亚洲精品老司机| 国产精品对白交换视频| 精品国产一区二区三区四区四| 色综合色狠狠综合色| 国产一区二区网址| 视频一区二区三区入口| 亚洲精品乱码久久久久久| 亚洲国产精品二十页| 精品免费视频一区二区| 欧美人xxxx| 欧美日韩不卡一区二区| 91黄色免费版| 99精品一区二区三区| 国产黄色精品网站| 国产原创一区二区| 看片网站欧美日韩| 日本在线不卡一区| 视频一区二区国产| 亚洲午夜电影网| 亚洲综合激情小说| 亚洲免费观看高清完整版在线| 中文天堂在线一区| 国产精品天干天干在观线| 久久久91精品国产一区二区精品| 精品国产伦理网| 日韩欧美一区二区久久婷婷| 日韩精品一区二区三区三区免费| 欧美精品第一页| 91精品国产高清一区二区三区蜜臀| 91国产丝袜在线播放| 欧美综合久久久| 欧美日韩日日骚| 5858s免费视频成人| 日韩免费看的电影| 亚洲精品一区二区三区蜜桃下载| 精品久久久久久久久久久院品网| 精品少妇一区二区三区日产乱码 | 国产麻豆精品在线| 国产一区二区三区综合| 国内久久精品视频| 国产精品1区2区| 成人动漫一区二区| 精品久久久久久最新网址| 久久亚洲综合色一区二区三区| 久久综合狠狠综合| 日本一区二区在线不卡| 国产精品久久久久永久免费观看| 国产精品高清亚洲| 亚洲综合在线第一页| 日韩电影在线观看一区| 国产一区二区伦理| 成人天堂资源www在线| 91在线高清观看| 欧美日韩成人综合天天影院| 日韩精品一区二区三区四区视频| 国产日产欧美精品一区二区三区| 国产精品天美传媒| 偷拍亚洲欧洲综合| 国产一区二区三区免费看| 波多野结衣亚洲一区| 欧美制服丝袜第一页| 欧美一级二级三级蜜桃| 国产亚洲婷婷免费| 亚洲精品成人在线| 日本va欧美va精品| 成人免费视频一区| 欧美日韩日本视频| 欧美激情中文字幕| 性做久久久久久免费观看| 极品少妇一区二区三区精品视频| 国产精品99久久久久久有的能看 | 国产精选一区二区三区| 99精品国产视频| 欧美一区二区免费观在线| 国产丝袜欧美中文另类| 亚洲一区欧美一区| 国产九色精品成人porny| 在线视频你懂得一区| 精品国产髙清在线看国产毛片| 中文字幕中文字幕在线一区| 日韩av网站在线观看| 97久久精品人人做人人爽50路| 欧美高清视频不卡网| 国产精品妹子av| 免费成人在线网站| 91久久精品一区二区三| 久久天天做天天爱综合色| 亚洲一区成人在线| av高清不卡在线| 国产亚洲短视频| 亚洲电影一区二区三区| 99久久久无码国产精品| 久久综合色鬼综合色| 亚洲成人激情综合网| 91视频一区二区| 日本一区二区免费在线| 老司机精品视频在线| 精品视频在线免费观看| 亚洲色图视频网| 成人一级黄色片| 26uuu精品一区二区| 日本高清不卡在线观看| 国产精品久久一级| 韩国女主播一区| 国产人成亚洲第一网站在线播放| 国产aⅴ综合色| 中文字幕日本乱码精品影院| 精品99999| 天天av天天翘天天综合网| 成人午夜在线免费| www一区二区| 蜜臀av一区二区三区| 成人理论电影网| 久久精品欧美日韩精品| 狠狠色丁香久久婷婷综| 日韩免费成人网| 日本中文字幕一区| 欧美亚洲综合另类| 久久久另类综合| 视频一区二区欧美| 日韩三级精品电影久久久| 日韩中文字幕一区二区三区| 欧美日韩一级黄| 亚洲成a人v欧美综合天堂下载| 欧美日韩激情一区二区| 五月激情综合婷婷| 日韩精品一区二区三区四区视频| 国产在线视频一区二区| 成人福利视频网站| 国产精品久久久久久久久免费桃花 | 亚洲成人动漫在线观看| 在线视频亚洲一区| 五月婷婷激情综合| 日韩一区二区三免费高清| 久久成人免费电影| 欧美精品一区二| 精品一区二区三区香蕉蜜桃| 欧美精品一区二区三| 成人午夜免费av| 夜夜爽夜夜爽精品视频| 欧美日韩和欧美的一区二区| 蜜臀av亚洲一区中文字幕| 欧美大片拔萝卜| 成人免费av资源| 一区二区三区免费在线观看| 欧美日韩1234| 日韩va亚洲va欧美va久久| 久久先锋影音av鲁色资源网| 大白屁股一区二区视频| 亚洲主播在线观看| 日韩欧美不卡一区| 波多野结衣在线aⅴ中文字幕不卡| 亚洲欧美日韩一区二区|