当前位置:网站首页>matlab 采用描点法进行数据模拟和仿真
matlab 采用描点法进行数据模拟和仿真
2022-08-05 00:22:00 【matlab_python22】
在matlab中 我们可以采取很多的描点法进行仿真 逼近原始数据
程序在文章的最后

可以看出是得到了原始数据
如果吧原始数据和真实的数据进行逼近,可以得到的结果如下

可以看出 这次的描点想是较好的

有小伙伴会说,怎么将其吧直线连接起来呢 是有办法的啊 结果如下所示

程序
clc
clear
close all
load('capall.mat')
x1=cap5(1:16)+rand(1,16);
figure
plot(x1,'->')
hold on
xx=[]
yy=[]
for i=1:16
[x,x2] = ginput(1)
plot(x,x2,'-*')
xx=[xx,x]
yy=[yy,x2]
hold on
end
figure
plot(xx,yy,'-*')
hold on
plot(x1)
legend('秒点','real')
边栏推荐
- 刘润直播预告 | 顶级高手,如何创造财富
- what?测试/开发程序员要被淘汰了?年龄40被砍到了32?一瞬间,有点缓不过神来......
- 2022 Niu Ke Summer Multi-School Training Camp 5 (BCDFGHK)
- could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
- ansible学习笔记分享-含剧本示例
- leetcode: 269. The Martian Dictionary
- canvas 高斯模糊效果
- 日志(logging模块)
- 僵尸进程和孤儿进程
- 【LeetCode】滑动窗口题解汇总
猜你喜欢
随机推荐
Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
Software Testing Interview Questions: What aspects should be considered when designing test cases, i.e. what aspects should different test cases test against?
软件测试面试题:关于自动化测试工具?
Software testing interview questions: What is the difference between load testing, capacity testing, and strength testing?
关于使用read table 语句
leetcode:267. 回文排列 II
Software Testing Interview Questions: What's the Difference Between Manual Testing and Automated Testing?
E - Many Operations (按位考虑 + dp思想记录操作后的结果
软件测试面试题:网络七层协仪具体?
canvas 高斯模糊效果
软件测试面试题:请你分别画出 OSI 的七层网络结构图和 TCP/IP 的四层结构图?
2022牛客多校第三场 J题 Journey
2022 Hangzhou Electric Power Multi-School Session 3 Question B Boss Rush
数据类型-整型(C语言)
typeScript - Partially apply a function
【Valentine's Day special effects】--Canvas realizes full screen love
软件测试面试题:软件测试类型都有哪些?
How to automatically push my new articles to my fans (very simple, can't learn to hit me)
【LeetCode】图解 904. 水果成篮
子连接中的参数传递









