Matlab 2014b m_map 工具箱的19种投影projection

2023-10-27

很久之前做过mmap的投影代码及图,不过当时自己水平也不行,无论是对图的理解还是对matlab的理解都不足。后来博客搬来搬去的,图也丢了,代码也挂了,正好最近又在用,所以重新做了一遍。

投影主要分四类

1、Azimuthal projection,方位角投影,默认图是圆形的。有的适合极地,有的适合看天球,保角和等面积的特性也不同。看需要了。利用‘rec’, 'on' 可以把圆形改为方形,多图拼接更美观

2、Cylindrical projections,柱状投影。正常就是方形图,具体的有的适合全球,有的适合很小范围。经纬圈也有的直线有的弯曲,弯曲的经线还可以通过clo 来设置图中甚至图外垂直经线的位置。倾斜型的还可以以地球的任意大圆为中心绘图。柱状图在两侧的变形是很厉害的,所以有的适合中纬度有的适合赤道。

3、Conic Projections,椎体投影。默认画的是同心圆环,但可以设置成方形图,就把周围多画点补成方的。适合中纬度地区,东西长条图

4、Miscellaneous global projection,传统全球图,各种漂亮

各个投影适合多大范围的图,大概怎么设置请参考具体代码和后面附图

m_map projections

%% m_map projections
clear;clc
clf
close all
proj = {...                        Azimuthal  Projections
    'Stereographic';               % 1   Polar regions
    'Orthographic';                % 2   resembles the globe
    'Azimuthal Equal-area';        % 3
    'Azimuthal Equidistant';       % 4
    'Gnomonic';                    % 5
    'Satellite';                   % 6
    ...                            Cylindrical Projections                         
    'Mercator';                    % 7  
    'Miller Cylindrical';          % 8
    'Equidistant Cylindrical';     % 9
    'Oblique Mercator';            % 10
    'Transverse Mercator';         % 11
    'UTM';                         % 12
    'Sinusoidal';                  % 13
    'Gall-Peters';                 % 14
    ...                            Conic Projections
    'Albers Equal-Area Conic';     % 15  
    'Lambert Conformal Conic';     % 16
    ...                            Global Projections
    'Hammer-Aitoff';               % 17  
    'Mollweide';                   % 18
    'Robinson'};                   % 19


for kp = 1:19
    disp(proj{kp})
    name = [num2str(kp,'%02d'),' - ', proj{kp}];
    switch kp
        % Azimuthal Projections
        case 1 
            % Stereographic
            % conformal but not equal area, often used for polar regions
            figure
            m_proj(proj{kp},'lon', 10, 'lat', 85, 'rad', 25,'rec','on')
            m_coast;  m_grid;

        case 2
            % Orthographic
            % neither equal nor conformal, resemble the global
            figure
            m_proj(proj{kp},'lon',110, 'lat',30','rad',90)
            m_coast;  m_grid;
        case 3
            % Azimuthal Equal-Area
            % equal area but not conformal, also called lambert azimuthal
            % equal-area projection
            figure
            m_proj(proj{kp},'lon',110, 'lat',30','rad',90)
            m_coast;  m_grid;
        case 4 
            % Azimuthal Equidistant
            % neither equal nor conformal,
            % all distance from the centre point is true
            figure
            m_proj(proj{kp},'lon',110, 'lat',30','rad',30)
            m_coast;  m_grid;
        case 5
            % Gnomonic
            % neither equal nor conformal
            % all straight lines are great circle routes
            % cause distortion at the edge of map
            % max radii 20~30 at most
            figure
            m_proj(proj{kp},'lon',110, 'lat',30','rad',20)
            m_coast;  m_grid;
        case 6
            % Satellite
            % perspective view of the earth
            % viewpoint altitude is required
            figure
            m_proj(proj{kp},'lon',-20, 'lat',60','alt',2)
            m_coast;  m_grid;

        % Cylindrical and Pseudo-cylindrical Projections 
        
        case 7
            % Mercator
            % conformal, straight lines are thumb lines
            % 'lon',([min max]| center), in center means global map
            % 'lat',[maxlat|[min max]), usually the same in both N and S latitude    
            figure
            m_proj(proj{kp},'lon',-20, 'lat',60)
            m_coast;  m_grid;
        case 8
            % Miller Cylindrical
            % neither equal nor conformal
            % looks nice for world maps
            figure
            m_proj(proj{kp},'lon',-20, 'lat',[-85,85])
            m_coast;  m_grid;
        case 9
            % Equidistant cylindrical
            % neither equal nor conformal
            % equally-spaced lat and lon lines
            % often used for quick plotting 
            figure
            m_proj(proj{kp},'lon',-20, 'lat',[-85,85])
            m_coast;  m_grid;
        case 10
            % Oblique Mercator
            % conformal not equal-area, around an arbitrary great circle
            % used for very short-wide or tall-thin map, i.e. long coast lines
            % two specified point lie in the middle (vertical or horizontal
            figure
            m_proj(proj{kp},'lon',[130,100], 'lat',[20,30],'dir','horizontal','asp',0.5)
            m_plot([130,100],[20,30],'marker','x','color','r')
            m_gshhs_l;  m_grid;
        case 11
            % Transverse Mercator
            % special case of 10, 
            % only meridian of longitude acts as the great circle
            % the meridian can be fixed by 'clo'
            figure
            m_proj(proj{kp},'lon',[110 130],'lat',[0 30],'clo',115,'rec','on')
            m_gshhs_l;  m_grid;
        case 12
            % Universal Transverse Mercator (UTM)
            % special case of 10
            % only for high-quality maps of small regions
            % ellipsodial projection
            % set 'ell' other than normal, 'rec','on',and omit m_grid
            % grid will be shown in meters
            figure
            m_proj(proj{kp},'lon',[115,125], 'lat',[30,40],'ell','sphere','rec','on')
%             m_plot([130,100],[20,30],'marker','x','color','r')
            m_gshhs_i;  m_grid;
        case 13
            % Sinusoidal
            % latitude as straight lines
            % meridians curve
            % equal-area
            figure
            m_proj(proj{kp},'lon',[80,150], 'lat',[0,60],'rec','on')
            m_coast('patch',[.9 .9 .9]);
            m_grid('ytick',[0:10:60],'backcolor',[184 215 245]/255);
        case 14
            % Gall-Peters 
            % parallel latitude and meridians
            % vertical scale distorted to preserve area
            % useful for tropical areas
            figure
            m_proj(proj{kp},'lon',[-80,150], 'lat',[-20,15])
            m_coast('patch',[.9 .9 .9]);
            m_grid('ytick',[-60:10:60],'backcolor',[184 215 245]/255);
            
        % Conic Projections    
        % mid-latitude areas of large east-west extent
        case 15
            % Albers Equal-Area Conic 
            % equal area, not conformal
            % 'clo', as center longitude
            % 'rec', on off
            figure
            m_proj(proj{kp},'lon',[0,180], 'lat',[20,60],'rec','on')
            m_coast('patch',[.9 .9 .9]);
            m_grid('ytick',[-60:10:60],'backcolor',[184 215 245]/255);
        case 16
            % Lambert Conformal Conic 
            % conformal, not equal-area
            figure
            m_proj(proj{kp},'lon',[0,180], 'lat',[20,60],'rec','on')
            m_coast('patch',[.9 .9 .9]);
            m_grid('ytick',[-60:10:60],'backcolor',[184 215 245]/255);
            
        % Miscellaneous Global Projections    
        % <,'lon<gitude>',[min max]>      
        % <,'lat<itude>',[min max]>       
        % <,'clo<ngitude>',value>         
        % <,'rec<tbox>', ( 'on' | 'off' )>
        case 17
            % Hammer-Aitoff
            % equal area
            % curved meridians and parallels
            figure
            m_proj(proj{kp})
            m_coast;m_grid('xaxislocation','middle');
        case 18
            % Mollweide
            % Parallels are straight
            % Also called the Elliptical or Homolographic Equal-Area Projection
            figure
            m_proj(proj{kp})
            m_coast;m_grid('xaxislocation','middle');
        case 19
            figure
            m_proj(proj{kp})
            m_coast;m_grid;
            
    end
    
    
    title(name)
    saveas(gcf,[name,'.png'])
end

% MP_AZIM Azimuthal projections
%           This function should not be used directly; instead it is
%           is accessed by various high-level functions named M_*.
%   Stereographic  - conformal
%   Orthographic   - neither conformal nor equal-area, but looks like globe
%                    with viewpoint at infinity.
%   Az Equal-area  - equal area, but not conformal (by Lambert)
%   Az Equidistant - distance and direction from center are true 
%   Gnomonic       - all great circles are straight lines.
%   Satellite      - a perspective view from a finite distance

% Cylindrical
%   Mercator - conformal
%   Miller - "looks" nice.
%   Equidistant - basically plotting by lat/long, with distances stretched.
% Conic Projections
%    Albers equal-area - has an equal-area property
%    Lambert conformal - is conformal

% Azimuthal projections 
% Azimuthal projections are those in which points on the globe are projected 
% onto a flat tangent plane. Maps using these projections have the property
% that direction or azimuth from the center point to all other points is shown 
% correctly. Great circle routes passing through the central point appear as 
% straight lines (although great circles not passing through the central point 
% may appear curved). These maps are usually drawn with circular boundaries. 
% The following parameters are needed to define an azimuthal projection:
% <,'lon<gitude>',center_long> 
% <,'lat<itude>', center_lat> 
% These parameters define the center point of the map. Maps are aligned so 
% that the specified longitude is vertical at the map center, with its 
% northern end at the top (but see option rotangle below). 
% <,'rad<ius>', ( degrees | [longitude latitude] )> 
% This defines the extent of the map. Either an angular distance in degrees 
% can be given (e.g. 90 for a hemisphere), or the coordinates of a point on 
% the boundary can be specified. 
% <,'rec<tbox>', ( 'on' | 'off' | 'circle' )> 
% The default is to enclose the map in a circular boundary (chosen using 
% either of the latter two options), but a rectangular one can also be 
% specified. However, rectangular maps are usually better drawn using a 
% cylindrical or conic projection of some sort. 
% <,'rot<angle>', degrees CCW> 

% 1 Stereographic 
    % The stereographic projection is conformal, but not equal-area. This 
    % projection is often used for polar regions. 
% 2 Orthographic 
    % This projection is neither equal-area nor conformal, but resembles a 
    % perspective view of the globe. 
% 3 Azimuthal Equal-Area 
    % Sometimes called the Lambert azimuthal equal-area projection, this mapping 
    % is equal-area but not conformal. 
% 4 Azimuthal Equidistant 
    % This projection is neither equal-area nor conformal, but all distances and 
    % directions from the central point are true. 
% 5 Gnomonic 
    % This projection is neither equal-area nor conformal, but all straight lines
    % on the map (not just those through the center) are great circle routes. 
    % There is, however, a great degree of distortion at the edges of the map, 
    % so maximum radii should be kept fairly small - 20 or 30 degrees at most. 
% 6 Satellite 
    % This is a perspective view of the earth, as seen by a satellite at a 
    % specified altitude. Instead of specifying a radius for the map, the 
    % viewpoint altitude is specified:
    
%     
% Cylindrical and Pseudo-cylindrical Projections 
% Cylindrical projections are formed by projecting points onto a plane wrapped around the globe, touching only along some great circle. These are very useful projections for showing regions of great lateral extent, and are also commonly used for global maps of mid-latitude regions only. Also included here are two pseudo-cylindrical projections, the sinusoidal and Gall-Peters, which have some similarities to the cylindrical projections (see below). 
% These maps are usually drawn with rectangular boundaries (with the exception of the sinusoidal and sometimes the transverse mercator). 
% 
% 
% 7 Mercator 
%     This is a conformal map, based on a tangent cylinder wrapped around the
%     equator. Straight lines on this projection are rhumb lines (i.e. the 
%     track followed by a course of constant bearing). The following properties affect this projection: 
%     <,'lon<gitude>',( [min max] | center)> 
%     Either longitude limits can be set, or a central longitude defined 
%     implying a global map. 
%     <,'lat<itude>', ( maxlat | [min max])> 
%     Latitude limits are most usually the same in both N and S latitude, 
%     and can be specified with a single value, but (if desired) unequal 
%     limits can also be used. 
% 8 Miller Cylindrical 
%     This projection is neither equal-area nor conformal, but "looks nice" 
%     for world maps. Properties are the same as for the Mercator, above. 
% 9 Equidistant cylindrical 
%     This projection is neither equal-area nor conformal. It consists of 
%     equally-spaced latitude and longitude lines, and is very often used for
%     quick plotting of data. It is included here simply so that such maps 
%     can take advantage of the grid generation routines. Also known as the 
%     Plate Carree. Properties are the same as for the Mercator, above. 
% 10 Oblique Mercator 
%     The oblique mercator arises when the great circle of tangency is 
%     arbitrary. This is a useful projection for, e.g., long coastlines or 
%     other awkwardly shaped or aligned regions. It is conformal but not 
%     equal area. The following properties govern this projection: 
%     <,'lon<gitude>',[ G1 G2 ]> 
%     <,'lat<itude>', [ L1 L2 ]> 
%     Two points specify a great circle, and thus the limits of this map 
%     (it is assumed that the region near the shortest of the two arcs is 
%     desired). The 2 points (G1,L1) and (G2,L2) are thus at the center of 
%     either the top/bottom or left/right sides of the map (depending on the 
%     'direction' property). 
%     <,'asp<ect>',value> 
%     This specifies the size of the map in the direction perpendicular to 
%     the great circle of tangency, as a proportion of the length shown. An 
%     aspect ratio of 1 results in a square map, smaller numbers result in 
%     skinnier maps. Aspect ratios >1 are possible, but not recommended. 
%     <,'dir<ection>',( 'horizontal' | 'vertical' ) 
%     This specifies whether the great circle of tangency will be horizontal 
%     on the page (for making short wide maps), or vertical (for tall thin 
%     maps). 
% 11 Transverse Mercator 
%     The Transverse Mercator is a special case of the oblique mercator when 
%     the great circle of tangency lies along a meridian of longitude, and 
%     is therefore conformal. It is often used for large-scale maps and 
%     charts. The following properties govern this projection: 
%     <,'lon<gitude>',[min max]> 
%     <,'lat<itude>',[min max]> 
%     These specify the limits of the map. 
%     <,'clo<ngitude>',value> 
%     Although it makes most sense in general to specify the central meridian 
%     as the meridian of tangency (this is the default), certain map 
%     classification systems (noteably UTM) use only a fixed set of central 
%     longitudes, which may not be in the map center. 
%     <,'rec<tbox>', ( 'on' | 'off' )> 
%     The map limits can either be based on latitude/longitude (the default), 
%     or the map boundaries can form an exact rectangle. The difference is 
%     small for large-scale maps. Note: Although this projection is similar 
%     to the Universal Transverse Mercator (UTM) projection, the latter is 
%     actually ellipsoidal in nature. 
% 12 Universal Transverse Mercator (UTM) 
%     UTM maps are needed only for high-quality maps of small regions of the 
%     globe (less than a few degrees in longitude). This is an ellipsoidal 
%     projection. Options are similar to those of the Transverse Mercator, 
%     with the addition of 
%     <,'zon<e>', value 1-60> 
%     <,'hem<isphere>',value 0=N,1=S> 
%     These are computed automatically if not specified. The ellipsoid 
%     defaults to 'normal', a spherical earth of radius 1 unit, but other 
%     options can also be chosen using the following property: 
%     <,'ell<ipsoid>', ellipsoid> 
%     For a list of available ellipsoids try m_proj('set','utm'). 
%     The big difference between UTM and all the other projections is that 
%     for ellipsoids other than 'normal' the projection coordinates are in 
%     meters of easting and northing. To take full advantage of this it 
%     is often useful to call m_proj with 'rectbox' set to 'on' and not 
%     to use the long/lat grid generated by m_grid (since the regular 
%     matlab grid will be in units of meters). 
% 13 Sinusoidal 
%     This projection is usually called "pseudo-cylindrical" since parallels 
%     of latitude appear as straight lines, similar to their appearance in 
%     cylindrical projections tangent to the equator. However, meridians 
%     curve together in this projection in a sinusoidal way (hence the name), 
%     making this map equal-area. 
% 14 Gall-Peters 
%     Parallels of latitude and meridians both appear as straight lines, but 
%     the vertical scale is distorted so that area is preserved. This is 
%     useful for tropical areas, but the distortion in polar areas is extreme. 



% Conic Projections
% 
% Conic projections result from projecting onto a cone wrapped around the 
% sphere. The vertex of the cone lies on the rotational axis of the sphere. 
% The cone is either tangent at a single latitude, or can intersect the 
% sphere at two separated latitudes. It is a useful projection for 
% mid-latitude areas of large east-west extent. The following properties 
% affect these projections: 
% <,'lon<gitude>',[min max]> 
% <,'lat<itude>',[min max]> 
% These specify the limits of the map. 
% <,'clo<ngitude>',value> 
% The central longitude appears as a vertical on the page. The default value 
% is the mean longitude, although it may be set to any value (even one 
% outside the limits). 
% <,'par<allels>',[lat1 lat2]> 
% The standard parallels can be specified. Either one or two parallels can 
% be given, the default is a single parallel at the mean latitude 
% <,'rec<tbox>', ( 'on' | 'off' )> 
% The map limits can either be based on latitude/longitude (the default), 
% or the map boundaries can form an exact rectangle which contain the given 
% limits. Unless the region being mapped is small, it is best to leave this 
% 'off' . 
% The default is to use a spherical earth model for the mapping transformations. 
% However, ellipsoidal coordinates can also be specified. This tends to be 
% useful only for doing coordinate transformations (e.g., if a particular 
% gridded database in in this kind of projection, and you want to find 
% lat/long data), since the difference would be impossible to see by eye on 
% a plot. The particular ellipsoid used can be chosen using the following 
% property: 
% <,'ell<ipsoid>', ellipsoid> 
% For a list of available ellipsoids try m_proj('set','albers'). 
% 
% 15 Albers Equal-Area Conic 
%     This projection is equal-area, but not conformal 
% 16 Lambert Conformal Conic 
%     This projection is conformal, but not equal-area. 

% 
% Miscellaneous global projections 
% 
% There are a number of projections which don't really fit into any of the 
% above categories. Mostly these are global projections (i.e. they show the 
% whole world), and they have been designed to be "pleasing to the eye". 
% I'm not sure what use they are in general, but they make nice logos! 
% 
% 17 Hammer-Aitoff 
%     An equal-area projection with curved meridians and parallels. 
% 18 Mollweide 
%     Also called the Elliptical or Homolographic Equal-Area Projection. 
%     Parallels are straight (and parallel) in this projection. Note that 
%     example 4 shows a rather sophisticated use designed to reduce 
%     distortion, a more standard map can be made using 
%     m_proj('mollweide');m_coast('patch','r');m_grid('xaxislocation','middle');
% 19 Robinson 
%     Not equal-area OR conformal, but supposedly "pleasing to the eye". 

 

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Matlab 2014b m_map 工具箱的19种投影projection 的相关文章

  • MATLAB - 冲浪图数据结构

    我用两种不同的方法进行了计算 对于这些计算 我改变了 2 个参数 x 和 y 最后 我计算了每种变体的两种方法之间的 误差 现在我想根据结果创建 3D 曲面图 x gt on x axis y gt on y axis Error gt o
  • 有效地绘制大时间序列(matplotlib)

    我正在尝试使用 matplotlib 在同一轴上绘制三个时间序列 每个时间序列有 10 6 个数据点 虽然生成图形没有问题 但 PDF 输出很大 在查看器中打开速度非常慢 除了以栅格化格式工作或仅绘制时间序列的子集之外 还有其他方法可以获得
  • 从开始/结束索引列表创建向量化数组

    我有一个两列矩阵M包含一堆间隔的开始 结束索引 startInd EndInd 1 3 6 10 12 12 15 16 如何生成所有区间索引的向量 v 1 2 3 6 7 8 9 10 12 15 16 我正在使用循环执行上述操作 但我想
  • 检测数据集中线性行为的算法

    我已经发布了一个关于对数据集的一部分进行多项式拟合的算法 https stackoverflow com q 17595932 2320757前一段时间收到一些建议去做我想做的事 但我现在面临另一个问题 我尝试应用答案中建议的想法 我的目标
  • 如何知道Matlab中系统命令执行过程中经过的时间?

    我有一个运行系统脚本的 Matlab 代码 该脚本可能会因命令运行而停止 我想知道是否有一种方法可以让程序知道它是否花费了很长时间并执行其他操作 这是代码 tic status cmdout system iperfcmd The prog
  • scipy distance_transform_edt 函数如何工作?

    https docs scipy org doc scipy 0 14 0 reference generated scipy ndimage morphology distance transform edt html https doc
  • 使用嵌套 if 子句向量化循环

    Problem 我正在尝试优化代码的运行时 并且之前曾提出过类似的问题 其中包括几个嵌套的 if 语句 向量化嵌套 if 语句 https stackoverflow com questions 38125770 vectorizing n
  • 有没有一种简单的方法来提供基于 Matlab 的 Web 应用程序或 Web 服务?

    我和一位同事花了几年时间开发一个非常酷的 Matlab 应用程序 MDLcompress 在 Matlab 中 我可以输入 MDLcompress filename txt 它会告诉我有关 filename txt 内容的各种非常酷的内容
  • 性能:Matlab 与 Python

    我最近从Matlab to Python 在转换我的一个冗长代码时 我惊讶地发现Python非常慢 我分析并追踪了一个函数占用时间的问题 该函数是从我的代码中的各个位置调用的 作为递归调用的其他函数的一部分 探查器建议300两个地方都调用了
  • 确定时间序列数据的 SOM(自组织映射)中的集群成员资格

    我也在做一个需要对时间序列数据进行聚类的项目 我正在使用在 MATLAB 中运行的 SOM 工具箱进行聚类 但遇到了以下问题 我们如何确定哪些数据属于哪个集群 SOM从数据集中随机选择数据样本 并为每个数据样本找到BMU 据我所知 SOM算
  • 此代码中 Matlab 与 C++ 速度比较

    我编写了简单的 C 代码并在 C 中对其进行了测试 然后我通过以下方式为 MATLAB 调整了相同的代码mex file name cpp并在 MATLAB 中运行相同的代码 该代码使用与 C 相同的编译器 这是代码 int k for i
  • 使用 mle() 估计自定义分布的参数

    我有以下代码 我希望估计自定义分布的参数 有关分发的更多详细信息 https stackoverflow com q 56522903 4930944 然后使用估计的参数 我想看看估计的 PDF 是否类似于给定数据的分布 它应该与给定数据的
  • 如何对函数的输出使用索引? [复制]

    这个问题在这里已经有答案了 可能的重复 如何索引函数返回的 MATLAB 数组而不先将其分配给局部变量 https stackoverflow com questions 3627107 how can i index a matlab a
  • 如何在 Matlab 中绘制连通性/邻接矩阵图?

    我想在 MATLAB 中绘制网络 电网 的结构图 我有一个包含每个分支的往返节点的列表 我没有节点的坐标 并且每次模拟的系统拓扑都会发生变化 我还需要能够为各种线路 节点分配不同的颜色 以可视化电压问题或过载等 类似于我使用传记 下面的代码
  • 评估函数卷积时出错

    这是我第一次尝试用 matlab 编写任何东西 所以请耐心等待 我正在尝试评估以下 ODE 的解 w N w w f t 与柯西条件 w 0 w 0 0 这里 N 是给定的非线性函数 f 是给定的源 我也需要这个功能 其中 G 是以下 OD
  • 旋转情节?

    我已经在 Matlab 中获得了正弦曲线的 x y 图 我希望将该图逆时针旋转 90 度 我该怎么做呢 在绘制的图中 单击 视图 gt 相机工具栏 使用滚动相机图标 这应该允许您旋转绘图 编辑 您还可以使用 camroll 函数以编程方式执
  • Matlab中带误差条的直方图

    我想将误差条放在条形图中 每个条形上方 我试过 bincentres 85 10 85 nelements 1 4 14 24 46 57 63 63 174 147 69 49 22 9 4 2 1 0 err sqrt nelement
  • 如何使用 Word Automation 获取页面范围

    如何使用办公自动化找到 Microsoft Word 中第 n 页的范围 似乎没有 getPageRange n 函数 并且不清楚它们是如何划分的 这就是您从 VBA 执行此操作的方法 转换为 Matlab COM 调用应该相当简单 Pub
  • 用于二元形态树修剪的内核中的“不关心”元素,MATLAB

    我正在尝试修剪数字 0 9 的骨架图像 由于原始数字厚度的不规则性 该图像有时会高度分支 为此 我尝试使用图 4 中所示的内核 http homepages inf ed ac uk rbf HIPR2 thin htm http home
  • 每当除以 0 或出现 Inf 值时,停止或暂停运行 MatLab

    当有如此多的 m 文件和如此多的计算时 跟踪为什么会出现这样或那样的错误确实是一项艰巨的任务 通常情况下 代码中的某个地方被 0 除 或者为某个变量保存了 Inf 值 我想让这很容易检查 一种方法是写 if a Inf display a

随机推荐

  • Java基础系列30-单列 Collection集合

    文章目录 一 集合的概述 1 1 为什么会出现集合类 1 2 集合类体系结构图 二 Collection集合 2 1 Collection集合入门 2 2 Collection集合的成员方法 2 3 Collection集合的遍历 2 4
  • vue使用vue-amap 高德地图进行选点和搜索

    vue使用vue amap进行地图点的搜索和点击选点 npm install vue amap save 下载npm 包 在main js主文件中进行引用 import VueAMap from vue amap Vue use VueAM
  • C++连接CTP接口实现简单量化交易(行情、交易、k线、策略)

    对于量化交易来说 量化策略和技术系统缺一不可 为了知其所以然 本文实现了一个C 连接CTP接口进行仿真交易的demo 从接收行情 下订单 数据处理到添加策略 挂载运行交易等多个环节来看一下量化交易的最简单流程 管中窥豹 一探究竟 准备工作
  • NetworkManager 使用

    Network Manager Network Manager aims for Network Connectivity which Just Works The computer should use the wired network
  • clickhouse源码:函数分析和自定义函数UDF

    clickhouse函数介绍 clickhouse官方提供了许多的函数 包括常规的数学函数 聚合函数 时间函数 逻辑函数 比较函数等等 关于官方的函数可以在官方文档中查看 官方文档 当然随着clickhouse的流行 国内也有不少的博主已经
  • 《星岛日报》专访:欧科云链AML,助力数字资产合规及风险防控

    6月1日 香港 适用于虚拟资产交易平台营运者的指引 及 打击洗钱指引 正式施行 香港虚拟资产发牌制度正式生效 作为深耕香港市场多年的Web3科技企业 欧科云链OKLink也正式推出的Onchain AML反洗钱合规解决方案 利用多年积累的海
  • python如何建立一个空集合_python的集合set

    一 集合set 概念 1 集合set是一组无序不可重复的key集合 2 set跟dict的key类似 区别在于set没有value 3 set使用场景 1 判断某个元素是否在集合中 2 消除输入数据的重复元素 二 set 的创建方式 1 创
  • timm 视觉库中的 create_model 函数详解

    timm 视觉库中的 create model 函数详解 最近一年 Vision Transformer 及其相关改进的工作层出不穷 在他们开源的代码中 大部分都用到了这样一个库 timm 各位炼丹师应该已经想必已经对其无比熟悉了 本文将介
  • 经典不衰数据可视化项目第一节(共享单车项目)

    1 1 首先导入包 import pandas as pd import numpy as np import matplotlib pyplot as plt import seaborn as sns import datetime i
  • Dectorator:装饰模式

    要为一个类扩展功能 那么可以使用派生 然后由派生类实现扩展的功能 但 若扩展的是个临时功能 或者可能扩展多个不确定功能 就需要使用装饰模式 装饰模式允许为一个类临时添加任意其他功能 并可以任意组合 装饰模式可以在不生成子类的情况下为对象添加
  • 情境领导者-第四章、选择合适的领导风格

    文章目录 情境领导者 第四章 选择合适的领导风格 故事 背景 情境领导模式 每种领到风格中 领导者可以有若干的选择 使用情境领导模式 结束语 情境领导者 第四章 选择合适的领导风格 故事 罗杰斯 让我给你讲一个例子 当我刚开始这里工作的时候
  • strncpy_s

    include stdafx h include
  • 记录.原码、反码、补码是如何简化处理四则运算以及计算机的数值存储

    一 原码反码补码 1 原码 最高位是符号位 正数符号位为0 负数符号位为1 其余是数值 符号位加数值组成原码 2 反码 正数补码是原码 负数补码是除了符号位外其他位取反 3 补码 正数补码是原码 负数补码是其反码加1 二 问题 1 在学习v
  • SQLServer 2008 下载地址(微软官方网站)

    SQLServer 2008 下载地址 微软官方网站 中文版 3 28GB http sqlserver dlservice microsoft com dl download B 8 0 B808AF59 7619 4A71 A447 F
  • 2021年数模国赛B题--乙醇偶合制备 C4 烯烃

    一 题目 C4 烯烃广泛应用于化工产品及医药的生产 乙醇是生产制备 C4 烯烃的原料 在制备过程中 催化剂组合 即 Co 负载量 Co SiO2 和 HAP 装料比 乙醇浓度的组合 与温度对 C4 烯烃的选择性和 C4 烯烃收率将产生影响
  • 前端面试——实现数组的复制

  • 来了!Goby一年一度的红队专版正式发布!!

    某大型活动临近 盆圈开始热闹起来 各种抢人大赛以及群集结号声 Goby今年有什么动作呢 继续支持攻击队 红队 也称蓝军 为何有且仅有红队专版 如果对方是一位绝世武功高手且拥有绝世宝剑 你肯定没有信心与他一战 但如果给你配一把枪呢 哪怕是一把
  • 关于微信小程序复制到剪贴板显示默认提示词的问题

    早上一上班 看到一个需求 小程序实现点击复制到剪贴板 在开发文档找了 剪贴板 关键词 就直接找到了相关的接口 如图 心里很是欣慰 结果如下 提示词显示固定 不能修改任何东西 在社区里找了一下 得到的结果 暂未解决 针对这一问题 网上解决办法
  • flask的ORM操作

    flask的ORM操作 目录 flask的ORM操作 ORM Flask SQLAlchemy扩展 数据模型 模型之间的关联 表管理 操作数据 新增 修改 删除 事务 查询 Flask SQLAlchemy提供了分页方法 四 文件的迁移 f
  • Matlab 2014b m_map 工具箱的19种投影projection

    很久之前做过mmap的投影代码及图 不过当时自己水平也不行 无论是对图的理解还是对matlab的理解都不足 后来博客搬来搬去的 图也丢了 代码也挂了 正好最近又在用 所以重新做了一遍 投影主要分四类 1 Azimuthal projecti