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

博文

按标题搜索
Matlab: script
2016-8-23 16:13
% create a script called endlesson3.m Syntax: edit endlesson3 % run the script endlesson3.m Syntax: cd /Volumes/DATA/VIP_1 % path for endlesson3.m endlesson3
个人分类: Matlab|1649 次阅读|没有评论
Matlat: define function and subfunction
2016-8-23 05:10
Define a function: % in_arg stands for input arguments, while out_arg stands for output arguments. Syntax: function =function_name(in_arg1,in_arg2,...) description end Define a subfunction (also: local function) into the function (also: main function): % Only ...
个人分类: Matlab|2347 次阅读|没有评论
Matlab: precedence
2016-8-23 03:53
个人分类: Matlab|1499 次阅读|没有评论
Matlab: the colon operator :
2016-8-22 22:40
Syntax: x=1 : 3 : 9; % colon (:) returns a vector that starts at 1 with an increment of 3, and stops no higher than 9. Output: Syntax: y=10 : - 2 : 3; Output: !!WRONG Syntax: y=10:2:3; Syntax: z=1 : 5; 或者 z= colon (1,5); Output:
个人分类: Matlab|2267 次阅读|没有评论
Matlab: size and length of an array
热度 1 2016-8-22 21:48
X=1; Y= ; Z= ; E= 1 row, 1 column sz_Y=size(Y); - 1 3 % 1 row, 3 column sz_Z=size(Z); - 3 2 % 3 row, 2 column sz_Z=size(E); - 0 0 % % length returns a scalar describing the largest dimension of an array. len_X=length(X); - 1 len_Y=length(Y); - ...
个人分类: Matlab|2285 次阅读|2 个评论 热度 1
Matlab: read image
2016-8-22 20:34
Syntax: p= imread ( ' /Users/Yangyang/Documents/Yangyang/life/photos/2016Munich/DSC_0019.JPG ' ); % path of the image image (p) axis off % remove the axises
个人分类: Matlab|2283 次阅读|没有评论
Matlab: plot basics
2016-8-22 18:12
a= ; b= ; plot(a,b); % put figures in dock by clicking the tiny arrow on the upper right: % set line style, marker symbol and color. Syntax: plot(x,y,LineSpec) % LineSpec is short for Line Specifier. It is a string! plot(x1, ...
个人分类: Matlab|2453 次阅读|没有评论
Matlab: 在Command Window中换行
2016-8-22 17:16
Syntax: operator ...
个人分类: Matlab|3921 次阅读|没有评论
Matlab: 科学计数法
2016-8-22 16:50
2e3=$2✖️10^3$
个人分类: Matlab|18367 次阅读|没有评论
Matlab: clear clc home close
2016-8-22 05:11
clear - remove items from workspace, freeing up system memory % clear a single variable/function a Syntax: clear a % clear a list of variables/functions Syntax: clear a b c d e % clear everything Syntax: clear 或者 clear all clc - CLear Command window, i.e. ...
个人分类: Matlab|2247 次阅读|没有评论

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

GMT+8, 2024-5-17 13:54

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部