【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']);

相关推荐
米码收割机3 分钟前
【python】tkinter实现音乐播放器(源码+音频文件)【独一无二】
开发语言·python·pygame
笛柳戏初雪18 分钟前
Python中的函数(下)
开发语言·python
美味小鱼28 分钟前
初识Cargo:Rust的强大构建工具与包管理器
开发语言·rust·cargo
c-c-developer41 分钟前
C++ Primer 标准库类型string
开发语言·c++
山茶花开时。42 分钟前
[SAP ABAP] Debug Skill
开发语言·sap·abap
奥顺互联V1 小时前
yes镜像站群/PHP驱动的镜像站群架构实践
开发语言·架构·开源·php
taopi20241 小时前
android java系统弹窗的基础模板
android·java·开发语言
釉色清风2 小时前
【matlab】绘图 离散数据--->连续函数
开发语言·matlab
松仔log2 小时前
Java多线程——对象的组合
java·开发语言·jvm
Qhumaing2 小时前
Python学习——函数参数详解
开发语言·python·学习