当前位置:网站首页>Simulink oscilloscope data is imported into Matlab and drawn
Simulink oscilloscope data is imported into Matlab and drawn
2022-07-03 16:36:00 【Fireworks guest】
1. stay simulink Design your own model , Enter oscilloscope
2. Click successively as shown in the figure

3. And then rerun , Get into matlab There will be an interface


4. Next, explain what this data means
You can see that the data is 59 That's ok ,3 Column

The first column represents the sampling time , Because I finally Stop time yes 10s

The second and third columns correspond to the data of the two observations respectively

5. To verify
stay matlab Enter the following code in the script , Extract data for drawing , See if it's related to simulink The data in the are consistent
t=out.ScopeData(:,1)
z1=out.ScopeData(:,2)
z2=out.ScopeData(:,3)
plot(t,z1,'r',t,z2,'b')
legend('z1','z2') As shown on the left matlab The picture drawn in , The right side is simulink The diagram drawn by the oscilloscope , Consistent result , Correct !
边栏推荐
- Everyone in remote office works together to realize cooperative editing of materials and development of documents | community essay solicitation
- 【剑指 Offer】58 - II. 左旋转字符串
- NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
- Colab works with Google cloud disk
- [combinatorics] combinatorial identities (review of eight combinatorial identities | product of combinatorial identities 1 | proof | use scenario | general method for finding combinatorial numbers)
- (补)双指针专题
- One article takes you to understand machine learning
- Advanced Mathematics (Seventh Edition) Tongji University exercises 2-1 personal solutions
- 【声明】关于检索SogK1997而找到诸多网页爬虫结果这件事
- Custom plug-in construction and use of QT plug-in
猜你喜欢

8个酷炫可视化图表,快速写出老板爱看的可视化分析报告

What is the pledge pool and how to pledge?

为抵制 7-Zip,列出 “三宗罪” ?网友:“第3个才是重点吧?”

Détails du contrôle de la congestion TCP | 3. Espace de conception

A survey of state of the art on visual slam

Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (I)

Remote file contains actual operation

PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)

NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
随机推荐
Construction practice camp - graduation summary of phase 6
Arduino esp32: overall framework of lvgl project (I)
如何在本机搭建SVN服务器
相同切入点的抽取
【剑指 Offer 】64. 求1+2+…+n
远程办公之大家一同实现合作编辑资料和开发文档 | 社区征文
切入点表达式
Register in PHP_ Globals parameter settings
面试之 top k问题
Myopia: take off or match glasses? These problems must be understood clearly first
Eleven requirements for test management post
AcWing 第58 场周赛
[statement] about searching sogk1997 and finding many web crawler results
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (I)
Mysql 单表字段重复数据取最新一条sql语句
Record windows10 installation tensorflow-gpu2.4.0
To resist 7-Zip, list "three sins"? Netizen: "is the third key?"
[Jianzhi offer] 58 - ii Rotate string left
QT串口ui设计和解决显示中文乱码
利用MySQL中的乐观锁和悲观锁实现分布式锁