是德科技
直播中

王玉洁

8年用户 204经验值
私信 关注
[问答]

如何在模拟过程中以excel格式保存数据并导入到Matlab中

大家好,我有个设计。
为了测试它,我想在模拟过程中以excel格式保存数据并将其导入matlab,我不知道为此目的“MatlabSinkF”广告块是否有用。
我测试了“timedataWrite”块但它没用,甚至“Write_Var()”命令也没用。
因为处理大数据我不想在使用结果窗口进行模拟后导出它。
有谁知道这样做的方法?
任何形式的帮助将非常感谢谢谢

以上来自于谷歌翻译


     以下为原文

  Hello everyone,
I have a design. In order to test it,I want to save data in excel format during simulation and import it into Matlab,I don't know whether for this purpose "MatlabSinkF" block of Ads will be useful or not. I tested "TimedataWrite" block but it was of no use, even "Write_Var()" command was not useful. Because of dealing with big data I don't want to export it after simulation using result window. Does anyone know of a way to do it?

Any sort of help will be highly appreciated
Thanks alot   

附件

回帖(2)

罗红

2019-3-6 07:47:23
如果您的模拟生成了一个图/数据集(* .ds),您可以通过单击工具栏工具 - >数据文件工具进行导出,并在dftool / mainWindow弹出窗口中选择名为Write data file from dataset的单选按钮。
选择要写入的文件格式(time domain,sparameters etcc ...)为文件命名,然后您可以创建该文件。
我不确定Matlab,但你可以单独阅读它。
我从未一起完成过Matlab和ADS。
祝你好运RR

以上来自于谷歌翻译


     以下为原文

  If your simulation produced a a plot/dataset (*.ds) you can export by clicking on the toolbar Tools -> Data File Tools, and select on the dftool/mainWindow popup the radio button called Write data file from dataset.  Select the file format to write (time domain, sparameters etcc...) give the file a name and you can create the file.

I am not sure about Matlab, but you can have it read it separately.  I have never done Matlab and ADS together.

Good luck

RR
举报

连伴叙

2019-3-6 08:01:06
ADS中有一个MatlabOutput块,可以生成.mat文件。
只需将其放置在模拟中的某个位置,所有模拟结果都将写入其中。
这是将数据导入Matlab的最简单方法。

以上来自于谷歌翻译


     以下为原文

  There is a MatlabOutput block in ADS that can generate a .mat file. Just place it somewhere in your simulation and all simulation results will be written to it. This is the easiest way to get your data into Matlab.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分