惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
量子位
V
V2EX
S
SegmentFault 最新的问题
月光博客
月光博客
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
博客园_首页
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
Y
Y Combinator Blog
The Cloudflare Blog
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
B
Blog
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed

博客园 - 图像处理工程师

电磁课 QT 5G NR Shell学习笔记 C git Python安装插件 体检清单 5G NR 随机接入RACH流程 SLIV 帮朋友写的两篇文章 与疯姐的对话 实现C(i,j)=A(m,n,w)+B(m,n) 误差处理相关 全局变量和局部变量 Yeelink:将复杂的传感器以极简的方式组到同一个网络内 基站分布:GDOP C++学习路线图 Matlab中三点确定质心
三维曲面Matlab仿真
图像处理工程师 · 2014-09-10 · via 博客园 - 图像处理工程师

close all

clc

clear

x=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30];

y=[64 111 156 155 135 113 78 104 85 77 42 83 56 63 85 81 92 99 80 40 56 43 48 63 53 82 92 52 33 66];

z=[19 18 15 26 27 29 31 31 32 25 24 26 27 32 28 23 21 24 22 25 28 33 35 35 34 28 26 22 29 32];

x=x';%日期

z=y';%PM2.5数据

y=z';%最高温度

steps=0:31;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%数据的拟合

[X,Y]=meshgrid(steps);

Z1=griddata(x,y,z,X,Y);

Z2=griddata(x,y,z,X,Y,'cubic');

Z3=griddata(x,y,z,X,Y,'nearest');

Z4=griddata(x,y,z,X,Y,'v4');

subplot(2,2,1);

mesh(X,Y,Z1);

hold on

plot3(x,y,z,'o');

hold off

subplot(2,2,2);

mesh(X,Y,Z2);

hold on

plot3(x,y,z,'o');

hold off

subplot(2,2,3);

mesh(X,Y,Z3);

hold on

plot3(x,y,z,'o');

hold off

subplot(2,2,4);

mesh(X,Y,Z4);

hold on

plot3(x,y,z,'o');

hold off