Dymola模拟的.mat结果的数据处理 [英] data processing of the .mat result from Dymola simulation

查看:74
本文介绍了Dymola模拟的.mat结果的数据处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Dymola的.mat结果进行数据处理.我的计划是使用MATLAB.我对.mat文件有一些疑问:

I am trying to do data processing with the .mat result from Dymola. My plan is to use MATLAB. I got a few questions about the .mat file:

  1. 如果我将.mat文件直接加载到MATLAB中,则数据结构非常奇怪,我必须使用Dymola随附的MATLAB脚本来加载.mat文件.是否有关于数据如何存储在.mat文件中的解释?
  2. 当绘制带有结果的图表时,我想更改单位,但是我不确定如何使Dymola以我要使用的单位输出数据.Dymola将数据输出到.mat文件时,是否有任何设置可以更改单位?

推荐答案

如果生成文本结果文件(它也可能在文档中的某处),则可以得到结果文件基本数据结构的解释,而最相关的部分是:

You can get an explanation for the basic data-structure of the result file if you generate a textual result file (it might also be somewhere in the documentation), and the most relevant part is:

 Matrix with 4 columns defining the data of the signals:

 dataInfo(i,1)=    j: name i data is stored in matrix "data_j".
                      (1,1)=0, means that name(1) is used as abscissa
                      for ALL data matrices!

 dataInfo(i,2)=    k: name i data is stored in column abs(k) of matrix
                      data_j with sign(k) used as sign.

为简单起见:最多有两个数据矩阵,并且用于所有数据矩阵的横坐标为时间".

And to simplify things: there are at most two data-matrices, and the abscissa used for ALL data matrices is "Time".

  1. 您当前无法以特定单位直接输出Mat文件.但是,您可以使用特定单位输出csv文件.

这篇关于Dymola模拟的.mat结果的数据处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆