⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eig.bff

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 BFF
字号:
# BinaryFileFormat (leave this tag as magic token!)

# BVQX file format for *.EIG files (EIGenvalues and vectors for ICA)
# EIG FileVersions supported: (no versioning information yet)
#
# Version:  v0.6e
# Build:    7052912
# Date:     May-29 2007, 12:55 PM CET
# Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
# URL/Info: http://wiki.brainvoyager.com/BVQXtools

# FILE FORMAT
Description:Eigenvalues/eigenvectors files
EncodingSyntax:ieee-le
Extensions:eig

# FIELDS
ListOfFields:!
type  !cond                   !disktype!datatype!dim                      !default !varname

# calculate NrOfVolumes for reading
EXPRE !$BFFREAD   !  !  !  !  !@NrOfVolumes = floor(sqrt($FILESIZE / 8)); if $FILESIZE ~= (8 * @NrOfVolumes * (@NrOfVolumes + 1)), error('Bad EIG file'); end
EXPRE !$BFFWRITE  !  !  !  !  !@NrOfVolumes = numel(@EigenValues); if @NrOfVolumes ~= length(@EigenVectors), error('Bad EIG content'); end

# read/write STC data
FIELD !                       !double  !double  !@NrOfVolumes, 1          !        !EigenValues
FIELD !                       !double  !double  !@NrOfVolumes, @NrOfVolumes !      !EigenVectors

# Read rest of File into REMAININGCONTENT
EXPRE !$BFFREAD   !  !  !  !  !$RemSize = $FILESIZE - ftell(fid);
EXPRE !$BFFWRITE  !  !  !  !  !$RemSize = 0; try, if isfield(@@, 'REMAININGCONTENT'), $RemSize = prod(size(@REMAININGCONTENT)); end, end
FIELD !$RemSize > 0           !uint8   !uint8   !1, $RemSize              !        !REMAININGCONTENT

EndListOfFields

# new file code snippet
NewFileCode:!
@NrOfVolumes = 120;
@EigenValues = zeros(@NrOfVolumes, 1);
@EigenVectors = zeros(@NrOfVolumes, @NrOfVolumes);
EndNewFileCode

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -