본문 바로가기

subplot ex) subplot(311);plot(.); subplot(312);plot(.); subplot(313);plot(.);  subplot -Create axes in tiled positions AlternativesTo add subplots to a figure, click one of the New Subplot icons in the Figure Palette, and slide right to select an arrangement of subplots. For details, see Plotting Tools — Interactive Plotting in the MATLAB Graphics documentation. Syntaxh = subplot(m,n,p) or subplot(mnp).. 더보기
clear all / close all / clc / clf clear all : 저장되어있는 변수들을 없엔다. close all : 떠 있는 plot 등을 없엔다. clc : 화면에 있는 걸 없엔다. clf : 현재 떠있는 창을 없엔다. 더보기
for loop for -Execute statements specified number of timesSyntaxfor index = values program statements : end Descriptionfor index=values, program statements, end repeatedly executes one or more MATLAB statements in a loop. values has one of the following forms: initval:endval increments the index variable from initval to endval by 1, and repeats execution ofprogram statements until index is greater than e.. 더보기
normrnd (White Gaussian Noise sampling) normrnd -Normal random numbersSyntaxR = normrnd(mu,sigma) R = normrnd(mu,sigma,m,n,...) R = normrnd(mu,sigma,[m,n,...]) DescriptionR = normrnd(mu,sigma) generates random numbers from the normal distribution with mean parameter mu and standard deviation parameter sigma. muand sigma can be vectors, matrices, or multidimensional arrays that have the same size, which is also the size of R. A scalar .. 더보기