【matlab程序】画海洋流场

【matlab程序】画海洋流场

clear;clc;

file =( '0227.nc');

lat=ncread(file,'latitude');

lon=ncread(file,'longitude');

u=ncread(file,'water_u');

v=ncread(file,'water_v');

x,y\]=meshgrid(lon,lat); x=x'; y=y'; interval=4; figure (1) set(gcf,'color',\[1 1 1\]) set(gcf,'position',\[150 300 500 500\]) set(0,'defaultfigurecolor','w') m_proj('Miller','lon',\[lon(1) lon(end)\],'lat',\[lat(1) lat(end)\]); m_gshhs_i('patch',\[0.6 0.6 0.6\],'edgecolor','k'); m_grid('linest','-.','color','k'); hold on m_quiver(x(1:interval:end,1:interval:end),y(1:interval:end,1:interval:end),u(1:interval:end,1:interval:end),v(1:interval:end,1:interval:end),0,'k'); title('海洋流场') print('-djpeg','-r400',\['海洋流场.jpg'\]);

相关推荐
Evand J17 分钟前
MATLAB技巧——平滑滤波,给出一定的例程和输出参考
开发语言·matlab
LCY1331 小时前
python 与Redis操作整理
开发语言·redis·python
暮乘白帝过重山1 小时前
路由逻辑由 Exchange 和 Binding(绑定) 决定” 的含义
开发语言·后端·中间件·路由流程
PingdiGuo_guo1 小时前
C++动态分配内存知识点!
开发语言·c++
人类群星闪耀时1 小时前
5G赋能远程医疗:从愿景到现实的技术变革
开发语言·5g·php
雪落山庄1 小时前
LeetCode100题
java·开发语言·数据结构
FAREWELL000752 小时前
C#进阶学习(十四)反射的概念以及关键类Type
开发语言·学习·c#·反射·type
NicOym2 小时前
C++ 为什么建议类模板定义在头文件中,而不定义在源文件中
开发语言·c++
种时光的人2 小时前
2025蓝桥省赛c++B组第二场题解
开发语言·c++·算法