当前位置:网站首页>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 !
边栏推荐
- Why does the std:: string operation perform poorly- Why do std::string operations perform poorly?
- Hong Kong Polytechnic University | data efficient reinforcement learning and adaptive optimal perimeter control of network traffic dynamics
- 【剑指 Offer】58 - II. 左旋转字符串
- Multithread 02 thread join
- Is it safe to open an account with flush?
- 手机注册股票开户安全吗 开户需要钱吗
- Using optimistic lock and pessimistic lock in MySQL to realize distributed lock
- 在ntpdate同步时间的时候出现“the NTP socket is in use, exiting”
- PHP二级域名session共享方案
- Remote file contains actual operation
猜你喜欢
Idea configuration plug-in
记一次jar包冲突解决过程
斑馬識別成狗,AI犯錯的原因被斯坦福找到了
What is the pledge pool and how to pledge?
word 退格键删除不了选中文本,只能按delete
Initial test of scikit learn Library
First knowledge of database
QT串口ui设计和解决显示中文乱码
线程池执行定时任务
Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
随机推荐
How to set up SVN server on this machine
Record a jar package conflict resolution process
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (I)
1287. Elements that appear more than 25% in an ordered array
Mongodb installation and basic operation
Thinking about telecommuting under the background of normalization of epidemic | community essay solicitation
【声明】关于检索SogK1997而找到诸多网页爬虫结果这件事
8 cool visual charts to quickly write the visual analysis report that the boss likes to see
Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
为抵制 7-Zip,列出 “三宗罪” ?网友:“第3个才是重点吧?”
Visual SLAM algorithms: a survey from 2010 to 2016
TCP congestion control details | 3 design space
How programming apes grow rapidly
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
[Jianzhi offer] 64 Find 1+2+... +n
Mixlab编辑团队招募队友啦~~
PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
8个酷炫可视化图表,快速写出老板爱看的可视化分析报告
Mysql 将逗号隔开的属性字段数据由列转行
Nifi from introduction to practice (nanny level tutorial) - flow