科学网

 找回密码
  注册
Matlab: figure
刘洋洋 2016-12-21 23:19
for i=1:100:length(time)-100 figure(7); f7=plot(time(i:i+100),c_tscorr(i:i+100,12),'k.'); %!modify file name xlabel('time','fontsize',14); datetick('x', 'HH:MM', 'keepticks'); ylabel('c_m_e_a_s(443) (m^-^1)','fontsize',14); pause(5) e ...
个人分类: Matlab|1868 次阅读|没有评论
Matlab: 自动批量修改mat文件的变量名称
刘洋洋 2016-12-20 01:21
描述: 有57个mat文件,文件名分别是:qft_data1.mat; qft_data2.mat;...;qft_data57.mat. 这些文件所包含的变量名称一致,均为: qft_data 待解决问题: 将这57个mat文件所包含的变量的名称变为:qft_data1; qft_data2;...; qft_data57. %% change variable clear all;close all;clc cd /Volumes/DATA/QFT_r ...
个人分类: Matlab|13766 次阅读|没有评论
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|7671 次阅读|没有评论
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|4772 次阅读|没有评论
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|6512 次阅读|1 个评论 热度 1
国外的博客scienceblog
刘洋洋 2016-8-24 23:44
https://scienceblog.com/
个人分类: Matlab|2128 次阅读|没有评论
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|2431 次阅读|没有评论
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|2648 次阅读|没有评论 热度 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|3508 次阅读|没有评论

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

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

GMT+8, 2024-5-11 02:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部