matlab 如何从如下txt中提取指定数据 并且汇总,作图 5

有若干txt文件,内有若干数据,每一数据在各txt中名称一致,数据和数据名用的是逗号分隔,请教如何读取若干指定的txt文件,并且从中抽取指定的数据名,进行汇总?txt内的... 有若干txt文件,内有若干数据,每一数据在各txt中名称一致,数据和数据名用的是逗号分隔,请教如何读取若干指定的txt文件,并且从中抽取指定的数据名,进行汇总?
txt内的文件内容例子
谢谢!
"03-27-15","17:50:22","NeVVLR_Cnt_Denominator",13.0
"03-27-15","17:50:22","NeVVLR_Cnt_HighMaxFailOnPass",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_HighMinSmplsOnFail",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_LowMaxFailOnPass",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_LowMinSmplsOnFail",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_Numerator",3.0
"03-27-15","17:50:22","NeVVLR_Cnt_OCV_TotalFailure",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_PerfMaxFailOnPass",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_PerfMinSmplsOnFail",0.0
"03-27-15","17:50:22","NeVVLR_Cnt_TestsTotal",3.0
"03-27-15","17:50:22","NeVVLR_Pct_OCV1_SIH_Threshold",5.499268
"03-27-15","17:50:22","NeVVLR_Pct_OCV1_SIL_Threshold",-9.002686
"03-27-15","17:50:22","NeVVLR_Pct_OCV2_SIH_Threshold",5.999756
"03-27-15","17:50:22","NeVVLR_Pct_OCV2_SIL_Threshold",-9.002686
"03-27-15","17:50:22","NeVVLR_Pct_OCV1_SIH_EWMA",-0.808541
"03-27-15","17:50:22","NeVVLR_Pct_OCV1_SIL_EWMA",0.319146
"03-27-15","17:50:22","NeVVLR_Pct_OCV1SIH_EWMA_Max_FOM",0.0
"03-27-15","17:50:22","NeVVLR_Pct_OCV1SIH_EWMA_Min_FOM",-0.808541
展开
 我来答
lzm_君临天下
2015-09-03 · 知道合伙人软件行家
lzm_君临天下
知道合伙人软件行家
采纳数:68 获赞数:416
毕业于武汉纺织大学工程系

向TA提问 私信TA
展开全部

已知一个txt文件,里边内容为:

在matlab中写如下代码:

dt = load('dt0.txt');   // load中写入文件的路径

plot(dt(:,1),dt(:,2));  // plot(x,y),其中dt(:,1)表示第一列中所有的数据

                             //dt(:,2)同理,表示第二列中所有的数据

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式