haibaraxx的个人博客分享 http://blog.sciencenet.cn/u/haibaraxx

博文

按标题搜索
Python: operators
2016-11-17 19:17
1+2 3 9-2 7 3*5 15 -2 ** 4 # 乘方 -16 # 除法要注意啦 8/4 2 8/3 2 # python2 2.6666666666666665 # python3 8/3 . (or 8/3 .0 or 8 .0 /3) 2.6666666666666665 ...
个人分类: Python|2283 次阅读|没有评论
Matlab: use GSHHS/GSHHG coastline data in M_Map
2016-9-7 05:06
1. Download GSHHS coastline bin data archive with the name starting at gshhg-bin from NOAA (美国国家海洋和大气管理局): http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhg/latest/ 2. Uncompress the data archive in the folder /Applications/MATLAB_R2015a.app/toolbox/ m_map/private 3. Use ...
个人分类: Matlab|7680 次阅读|没有评论
Matlab: install M_Map in mac
2016-9-6 04:22
1. Download the M-Map zip archive file from https://www.eoas.ubc.ca/~rich/map.html 2. Unpack the zip archive and its sunfolder in the path: /Applications/MATLAB_R2015a.app/toolbox/ 1) find the Applications folder, right click it and left click Open Applications ; 2) find the icon ...
个人分类: Matlab|4781 次阅读|没有评论
Matlab: repeat copies of matrix 矩阵复制
热度 1 2016-8-24 23:52
a= ; b1= repmat (a,2); % 复制成2-by-2 block - 1 2 1 2 3 4 3 4 1 2 1 2 3 4 3 4 b2= repmat (a,2,1); % 复制成2-by-1 block - 1 2 3 4 1 2 3 4
个人分类: Matlab|6518 次阅读|1 个评论 热度 1
国外的博客scienceblog
2016-8-24 23:44
https://scienceblog.com/
个人分类: Matlab|2133 次阅读|没有评论
Matlab: relational and logical operators
2016-8-23 23:45
10==20 - 0 % if it is false, it returns 0. 1020 - 1 % if it is true, it returns 1. x=(16*641000)+9 - 10 % x=1+9. y=16*641000+9 - 1 % arithmetic operators has higher precedence than relationallogical operators. 16*641000+9 is true, i.e. 1. ...
个人分类: Matlab|2442 次阅读|没有评论
好为人师者请绕行
热度 1 2016-8-23 19:05
我的博客更像是一种电子学习笔记,自我备份也分享给有需求的人阅览。 不想看到好为人师者的评论。 即使你是专家教授,也请注意言辞举止,不要那么好为人师,本博客不欢迎这种人。 三人行,必有我师焉。世界如此之大,别把自己看得太重,别把自己的话当成黄金定律,别太自恋。也许你很牛逼,但我未必瞧得起你! 最后引 ...
1801 次阅读|1 个评论 热度 1
Matlab: round to the nearest integer toward 0
热度 1 2016-8-23 17:12
% round each element of x to the nearest integer toward 0 Syntax: fix (x)
个人分类: Matlab|2658 次阅读|没有评论 热度 1
Matlab: diagonal matrix 对角线矩阵
2016-8-23 17:03
Syntax: diag( ); Output: 1 0 0 0 0 2 0 0 0 0 3 0 0 0 0 4
个人分类: Matlab|3518 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-17 12:42

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部