📄 file.txt
字号:
The 'W' and 'A' permissions are designed for use with tape drives and
do not automatically perform a flush of the current output buffer
after output operations. For example, open a 1/4" cartridge tape on a
SPARCstation for writing with no auto-flush:
fid = fopen('/dev/rst0','W')
See also FCLOSE, FREWIND, FREAD, FWRITE, FPRINTF.
Overloaded methods
help serial/fopen.m
help instrument/fopen.m
0.10 1.10517092
...
1.00 2.71828183
See the reference page in the online help for other exceptions,
extensions, or platform-specific behavior.
See also FSCANF, SPRINTF, FWRITE, DISP, DIARY, SAVE, INPUT.
Overloaded methods
help serial/fprintf.m
help instrument/fprintf.m
学校概况
杭州电子工业学院是一所电子信息学科特色明显,经济管理学科优势较强,工、理、管、经、文、法、教等多学科协调发展的高等学校。学校创建于1956年,先后隶属于第二机械工业部、第四机械工业部、电子工业部和信息产业部。2000年开始实行部省共建、以省管为主的管理体制。2002年浙江省人民政府正式批准筹建杭州电子科技大学,是浙江省重点建设的教学科研型万人大学之一。
学校占地面积2000余亩,建筑面积61万平方米。现有全日制在校本科生、研究生11000余人。有35个本科专业、17个硕士点、1个博士点(1996年与原杭州大学共建)、1个博士后科研工作站。学校获准招收外国留学生和台港澳学生,并具有工程硕士专业学位和同等学力在职人员硕士学位授予权。形成了以本科生、研究生教育为主的多层次人才培养体系,成为浙江省电子信息领域人才培养和科学研究的重要基地。
学校坚持以培养高素质创新人才为目标,不断加强对学生创新精神和实践能力的培养。近年来学生在各类全国统考和全国大学生“数学建模”、“电子设计”、“挑战杯”等大赛中连续获得24项全国一等奖,被浙江省教育厅授予特别贡献奖。毕业生基础知识扎实,动手能力强,深受用人单位和社会各界的好评,初次就业率居浙江省高校前列。
学校师资队伍结构合理。现有教职工1200余人,专任教师近600人。其中,共享院士3人,教授、副教授330余人,博士生导师14人,省中青年学科带头人16人,具有研究生学历和硕士以上学位的教师占58%。学校从国内外重点高校、科研院所和大型企业聘请116位兼职教授。一支学术造诣深、教学水平高、科研能力强、梯队结构合理的教师队伍日臻成熟。
学校学科特色和优势明显。现有4个省重点学科,4个省重点扶持学科,7个部重点学科,7个省部级重点实验室,2个省特聘教授岗位。学校长期致力于发展电子信息学科,并注重电子信息与传统学科的渗透和融合,形成了以电路与系统、计算机应用技术、网络信息安全等学科为主体的电子信息类优势学科群及以智能检测与控制、光机电一体化、信息管理与管理信息、会计决策控制等为代表的特色研究方向。
学校科研有较好的基础和力量。建有微电子CAD、CAE研究所和工业智能机器人研究所等40多个科研机构,长期承担“六五”至“九五”国家计划重点科技攻关、军事电子预研、“863”高科技攻关和国家、省部基金等一系列科研项目,一批优秀成果获国家、省部级科技进步奖和国家发明奖等,并在大规模集成电路设计、微电子元器件、信息安全与对抗、保密通信、机器人、图形图像处理及应用、智能计算机控制等新兴交叉学科与边缘学科领域做出了突出贡献。
学校十分重视对外合作与交流。每年组织派遣教师出国进修、讲学、合作科研及参加其它学术活动,与美国、德国、日本、加拿大、英国、芬兰等国的知名大学、科研机构及国际企业建立友好合作关系,积极开展互派学者、联合培养、招收留学生、科技合作、信息资源交流等活动,承办高水平的国际学术会议,有力地促进了学科建设,增强了国际化办学特色。
FREAD Read binary data from file.
[A, COUNT] = FREAD(FID,SIZE,PRECISION) reads binary data from the
specified file and writes it into matrix A. Optional output
argument COUNT returns the number of elements successfully read.
FID is an integer file identifier obtained from FOPEN.
The SIZE argument is optional; if not specified, the entire
file is read and the file pointer is at the end of the file (see
FEOF for details); if specified, valid entries are:
N read N elements into a column vector.
inf read to the end of the file.
[M,N] read elements to fill an M-by-N matrix, in column order.
N can be inf, but M can't.
The PRECISION argument is a string that specifies the format
of the data to be read. It commonly contains a datatype specifier
like 'int' or 'float' followed by an integer giving the size in
bits. Any of the following strings, either the MATLAB version,
or their C or Fortran equivalent, may be used. If not specified,
the default is 'uchar'.
MATLAB C or Fortran Description
'uchar' 'unsigned char' unsigned character, 8 bits.
'schar' 'signed char' signed character, 8 bits.
'int8' 'integer*1' integer, 8 bits.
'int16' 'integer*2' integer, 16 bits.
'int32' 'integer*4' integer, 32 bits.
'int64' 'integer*8' integer, 64 bits.
'uint8' 'integer*1' unsigned integer, 8 bits.
'uint16' 'integer*2' unsigned integer, 16 bits.
'uint32' 'integer*4' unsigned integer, 32 bits.
'uint64' 'integer*8' unsigned integer, 64 bits.
'single' 'real*4' floating point, 32 bits.
'float32' 'real*4' floating point, 32 bits.
'double' 'real*8' floating point, 64 bits.
'float64' 'real*8' floating point, 64 bits.
For example,
type fread.m
displays the complete M-file containing this FREAD help entry. To
simulate this command one could enter instead:
fid = fopen('fread.m','r');
F = fread(fid);
s = char(F')
The FOPEN command opens the M-file on the MATLAB path with name,
'fread.m' for reading. The FREAD command assumes the default SIZE of
inf and the default PRECISION of 'uchar'. It reads the entire file
converting the unsigned characters into a column vector of class
'double' (double precision floating point). To display the result
as readable text the 'double' column vector is transposed to a
row vector and converted to class 'char' (character) using the CHAR
function.
The following platform dependent formats are also supported but
they are not guaranteed to be the same size on all platforms.
MATLAB C or Fortran Description
'char' 'char*1' character, 8 bits (signed or unsigned).
'short' 'short' integer, 16 bits.
'int' 'int' integer, 32 bits.
'long' 'long' integer, 32 or 64 bits.
'ushort' 'unsigned short' unsigned integer, 16 bits.
'uint' 'unsigned int' unsigned integer, 32 bits.
'ulong' 'unsigned long' unsigned integer, 32 bits or 64 bits.
'float' 'float' floating point, 32 bits.
The following formats map to an input stream of bits rather than
bytes.
'bitN' signed integer, N bits (1<=N<=64).
'ubitN' unsigned integer, N bits (1<=N<=64).
If the input stream is bytes and FREAD reaches the end of file
(see FEOF) in the middle of reading the number of bytes required
for an element, the partial result is ignored. However, if the
input stream is bits, then the partial result is returned as the
last value. If an error occurs before reaching the end of file,
only full elements read up to that point are used.
By default, numeric values are returned in class 'double' arrays.
To return numeric values stored in classes other than double,
create your PRECISION argument by first specifying your source
format, then following it by '=>', and finally specifying your
destination format. You are not required to use the exact name
of a MATLAB class type (see CLASS for details) for the destination.
The name is translated for you to the name of the most appropriate
MATLAB class type. If the source and destination formats are the
same then the following shorthand notation may be used:
*source
which means:
source=>source
For example,
uint8=>uint8 read in unsigned 8-bit integers and
save them in an unsigned 8-bit integer
array
*uint8 shorthand version of previous example
bit4=>int8 read in signed 4-bit integers packed
in bytes and save them in a signed
8-bit integer array (each 4-bit
integer becomes one 8-bit integer)
double=>real*4 read in doubles, convert and save
as a 32-bit floating point array
[A, COUNT] = FREAD(FID,SIZE,PRECISION,SKIP) includes a SKIP argument
that specifies the number of bytes to skip after each PRECISION value
is read. If PRECISION specifies a bit source format, like 'bitN' or
'ubitN', the SKIP argument is interpreted as the number of bits to
skip.
When SKIP is used, the PRECISION string may contain a positive
integer repetition factor of the form 'N*' which prepends the source
format of the PRECISION argument, like '40*uchar'. Note that 40*uchar
for the PRECISION alone is equivalent to '40*uchar=>double', not
'40*uchar=>uchar'. With SKIP specified, FREAD reads in, at most, a
repetition factor number of values (default of 1), does a skip of
input specified by the SKIP argument, reads in another block of values
and does a skip of input, etc. until SIZE number of values have been
read. If a SKIP argument is not specified, the repetition factor is
ignored. Repetition with skip is useful for extracting data in
noncontiguous fields from fixed length records.
For example,
s = fread(fid,120,'40*uchar=>uchar',8);
reads in 120 characters in blocks of 40 each separated by 8 characters.
Note that the class type of s is 'uint8' since it is the appropriate
class corresponding to the destination format, 'uchar'. Also since 40
evenly divides 120 the last block read is a full block which means
that a final skip will be done before the command is finished. If the
last block read is not a full block then FREAD will not finish with a
skip.
See FOPEN on how to read Big and Little Endian files.
See also FWRITE, FSEEK, FSCANF, FGETL, FGETS, LOAD, FOPEN, FEOF.
Overloaded methods
help serial/fread.m
help udp/fread.m
help instrument/fread.m
help fopen
FOPEN Open file.
FID = FOPEN(FILENAME) opens the file FILENAME for read access.
(On PC systems, fopen opens files for binary read access.)
FILENAME can be a MATLABPATH relative partial pathname. If the
file is opened for reading and it is not found in the current
working directory, FOPEN searches down MATLAB's search path.
FID is a scalar MATLAB integer, called a file identifier. You
use the fid as the first argument to other file input/output
routines. If FOPEN cannot open the file, it returns -1.
FID = FOPEN(FILENAME,PERMISSION) opens the file FILENAME in the
mode specified by PERMISSION. PERMISSION can be:
'r' read
'w' write (create if necessary)
'a' append (create if necessary)
'r+' read and write (do not create)
'w+' truncate or create for read and write
'a+' read and append (create if necessary)
'W' write without automatic flushing
'A' append without automatic flushing
Files can be opened in binary mode (the default) or in text mode.
In binary mode no characters get singled out for special treatment.
In text mode on the PC, the carriage return character preceding
a newline character is deleted on input and added before the newline
character on output. To open in text mode, add 't' to the
permission string, for example 'rt' and 'wt+'. (On Unix, text and
binary mode are the same so this has no effect. But on PC systems
this is critical.)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -