声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3173|回复: 6

[绘图技巧] 求助,怎么用matlab处理.nev和.nsx格式文件?谢谢

[复制链接]
发表于 2009-8-1 18:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
RT,怎么用matlab处理.nev和.nsx格式文件?读取,并绘出文件中的数据,网上找不到这两个文件的格式,ultraEdit打开是乱码,急,哪位大师帮下忙,谢谢
回复
分享到:

使用道具 举报

发表于 2009-8-2 15:19 | 显示全部楼层

回复 楼主 chmy 的帖子

楼主方便说明下.nev和.nsx是什麽软件的文件格式!?
基本上, binary的文件必须知道其文件格式, 才可以利用fread读取!
 楼主| 发表于 2009-8-2 16:37 | 显示全部楼层

回复 沙发 ChaChing 的帖子

谢谢 我也不知道是什么软件的文件 我只有一个PDF一点点的介绍 这是.nsx的说明
Header
The file begins with a file header. All Char arrays are not guaranteed to be 0 terminated; they will be
only if the string is actually shorter than the maximum length allowed. All multi-byte data types will
be stored in little-endian format.
Field                             Type                    Length(Bytes)                        Description
File ID                   Char array                         8                               Always set to “NEURALSG” for Neural Sample Group’0’ terminated only if fewer  chars than allocated
Label                    Char array                         16                             Label of the sampling group e.g. 1 kS/s or LFP Low’0’ terminated only if fewer chars than allocated
Period                  Unsigned int-32                4                                Number of 1/30,000 seconds between data points e.g. sampling rate of 30 kS/s = 1; 10 kS/s = 3

Channel Count  Unsigned int-32                4                                Number of channels per data point

Channel ID         Array of unsigned int-32  Variable(4 bytes per chan)  Electrode number for each channel being sampled and data saved. This number will correspond exactly with the “electrode number” of section 3. There will be exactly “Channel Count” number of entries in this field.

Immediately following the header will be the “data” section.


Data
Each entry in the data section corresponds to a single point in time, and the entries are in order of
increasing time. Each entry consists of the samples from multiple channels and is defined as follows:
Field                                                        Type                                                    Length(Bytes)                                        Description
Data point                              Array of signed int-16                                      Variable(2 bytesper chan)                  This corresponds to a single data collection point
There will be exactly “Channel Count” number of datapoints. They will be sorted in the same order as they arepresented in “Channel ID”.
发表于 2009-8-2 22:07 | 显示全部楼层
瞄了下! 这个不就是文件格式!? help fread
发表于 2011-6-4 11:37 | 显示全部楼层
本帖最后由 tiger1981 于 2011-6-4 11:49 编辑

你自己按照文件格式来写代码吧, 这里面有很多技巧, 当时我也是这么过来的, 没人帮助我. 你可以看看Cerebus/ BlakckRock自己的一个MATLAB routine 叫做SAC,. 里面有读nev的函数.

评分

1

查看全部评分

发表于 2011-6-4 12:26 | 显示全部楼层
回复 5 # tiger1981 的帖子

建议直接给个连接!?
发表于 2014-12-4 15:15 | 显示全部楼层
谢谢,正在学习这个格式
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-18 13:32 , Processed in 0.051774 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表