8 views

Uploaded by Hana Hamid

matlab

- Direct Calculation of Line Outage Distribution Fac
- Matlab-Scilab equivalents.pdf
- TowerSmart Tower Detailing Tips - Series 1
- P-0061
- Ex Mathcad
- CompositesMechanicsChapter 14
- 136211368 Matlab Tutorial
- Basics of Matlab Wk1
- The Octopus Manual
- HW 04 Template v3
- KSP Manual
- Latex Math Symbols
- Cubical CAMP
- ti2
- c++ practice codes for competitions.docx
- 1_4 Subsetting
- Matlab Intro
- 21_PhDThesisEduardCalvo
- algebra 2h ab schedule
- Computability

You are on page 1of 7

There are many Matlab features which cannot be included in these introductory notes. Listed below are some of the Matlab functions and operators available, rouped by sub!ect area "#ource$ Matlab %ser&s 'uide, version (.5). %se the on*line help facility or consult the %ser&s 'uide for more detailed information on the functions. There are many functions beyond these. There e+ist, in particular, several ,toolbo+es, of functions for specific areas- included amon such are si nal processin , control systems, robust*control, system identification, optimi.ation, splines, chemometrics, mu*analysis and synthesis, state*space identification, and neural networ/s. "The toolbo+es, which are optional, may not be installed on your system.) These can be e+plored via the command help.

help demo who what size length clear computer ^C exit quit help facility run demonstrations list variables in memory list M-files on disk row and column dimensions vector length clear workspace type of computer local abort exit Matlab same as exit

Matri+01rray 2perators

Matrix Operators rray Operators --------------------------------------------------! addition ! addition subtraction subtraction " multiplication #" multiplication $ right division #$ right division % left division #% left division ^ power #^ power & con'ugate transpose #& transpose

( () * *) )) +) , +

less than less than or equal greater than greater than or equal equal not equal and or not

#pecial 4haracters

) assignment statement

. / 0 1 # ### 2 3 4 5 6

used to form vectors and matrices see . arithmetic expression precedence see 0 decimal point continue statement to next line separate subscripts and function arguments end rows2 suppress printing comments subscripting2 vector generation execute operating system command

#pecial 5alues

ans eps pi i2 ' inf 8a8 clock date flops nargin nargout

answer when expression not assigned floating point precision pi sqrt0-71 infinity 8ot-a-8umber wall clock date floating point operation count number of function input arguments number of function output arguments

6is/ 7iles

chdir delete diary dir load save type what fprintf pack change current directory delete file diary of the session directory of files on disk load variables from file save variables to file list function or file show M-files on disk write to a file compact memory via save

#pecial Matrices

compan diag eye gallery hadamard hankel hilb invhilb linspace logspace magic meshdom ones pascal rand toeplitz vander companion diagonal identity esoteric 9adamard 9ankel 9ilbert inverse 9ilbert linearly spaced vectors logarithmically spaced vectors magic square domain for mesh points constant :ascal random elements ;oeplitz <andermonde

zeros

zero

Matri+ Manipulation

rot=> fliplr flipud diag tril triu reshape #& 5

rotation flip matrix left-to-right flip matrix up-to-down diagonal matrices lower triangular part upper triangular part reshape transpose convert matrix to single column3

051

any all find isnan finite isempty isstr strcmp logical conditions logical conditions find array indices of logical values detect 8a8s detect infinities detect empty matrices detect string variables compare string variables

4ontrol 7low

if elseif else end for while break return pause conditionally execute statements used with if used with if terminate bif2 for2 while repeat statements a number of times do while break out of for and while loops return from functions pause until key pressed

input keyboard error function eval feval echo exist casesen global startup getenv menu etime

get numbers from keyboard call keyboard as M-file display error message define function interpret text in variables evaluate function given by string enable command echoing check if variables exist set case sensitivity define global variables startup M-file get environment string select item from menu elapsed time

abs

convert string to

?C@@ values

evaluate text macro convert number to string convert integer to string set flag indicating matrix is a string convert number to string detect string variables compare string variables convert hex string to number

4ommand 9indow

clc home format disp fprintf echo clear command screen move cursor home set output display format display matrix or text print formatted number enable command echoing

'raph 8aper

plot loglog semilogx semilogy polar mesh contour meshdom bar stairs errorbar linear B-C plot loglog B-C plot semi-log B-C plot semi-log B-C plot polar plot D-dimensional mesh surface contour plot domain for mesh plots bar charts stairstep graph add error bars

'raph 1nnotation

title xlabel ylabel grid text gtext ginput

plot title x-axis label y-axis label draw grid lines arbitrarily position text mouse-positioned text graphics input

axis hold shg clg subplot manual axis scaling hold plot on screen show graph window clear graph window split graph window

print prtsc meta

abs absolute value or complex magnitude

angle sqrt real imag con' round fix floor ceil sign rem exp log log7>

phase angle square root real part imaginary part complex con'ugate round to nearest integer round toward zero round toward -infinity round toward infinity signum function remainder exponential base e natural logarithm log base 7>

sin cos tan asin acos atan atanA sinh cosh tanh asinh acosh atanh sine cosine tangent arcsine arccosine arctangent four quadrant arctangent hyperbolic sine hyperbolic cosine hyperbolic tangent hyperbolic arcsine hyperbolic arccosine hyperbolic arctangent

#pecial 7unctions

bessel gamma rat erf inverf ellipk ellip'

bessel function gamma function rational approximation error function inverse error function complete elliptic integral of first kind Eacobian elliptic integral

balance backsub cdfArdf chol eig hess inv lu nnls null orth pinv qr qz rref balanced form backsubstitution convert complex-diagonal to real-diagonal Cholesky factorization eigenvalues and eigenvectors 9essenberg form inverse factors from Faussian elimination nonnegative least squares null space orthogonalization pseudoinverse orthogonal-triangular decomposition GH algorithm reduced row echelon form

schur svd

Matri+ 4onditionin

cond norm rank rcond condition number in A-norm 7-norm2A-norm2I-norm2 infinity-norm rank condition estimate 0reciprocal1

expm logm sqrtm funm poly det trace kron matrix exponential matrix logarithm matrix square root arbitrary matrix function characteristic polynomial determinant trace Jronecker tensor product

8olynomials

poly roots roots7 polyval polyvalm conv deconv residue polyfit characteristic polynomial polynomial roots---companion matrix method polynomial roots---Kaguerre&s method polynomial evaluation matrix polynomial evaluation multiplication division partial-fraction expansion polynomial curve fitting

max min mean median std sort sum prod cumsum cumprod diff hist corrcoef cov cplxpair

maximum value minimum value mean value median value standard deviation sorting sum of elements product of elements cumulative sum of elements cumulative product of elements approximate derivatives histograms correlation coefficients covariance matrix reorder into complex pairs

#i nal 8rocessin

abs angle conv corrcoef cov deconv complex magnitude phase angle convolution correlation coefficients covariance deconvolution

radix-A fast Iourier transform two-dimensional II; inverse fast Iourier transform inverse A-L II; II; rearrangement

quad quadM

odeAD odeOP

fmin fmins fsolve fzero

minimum of a function of one variable minimum of a multivariable function solution of a system of nonlinear equations 0zeros of a multivariable function1 zero of a function of one variable

<nterpolation

spline table7 tableA cubic spline 7-L table look-up A-L table look-up

- Direct Calculation of Line Outage Distribution FacUploaded byVitthal Patnecha
- Matlab-Scilab equivalents.pdfUploaded byDidik Hariadi
- TowerSmart Tower Detailing Tips - Series 1Uploaded bygadski
- P-0061Uploaded byabcd1234
- Ex MathcadUploaded byRija Hossain
- CompositesMechanicsChapter 14Uploaded bySena Koçak
- 136211368 Matlab TutorialUploaded byRohan Malkar
- Basics of Matlab Wk1Uploaded byShreeyesh Biswal
- The Octopus ManualUploaded byYongSing You
- HW 04 Template v3Uploaded byAníbal G. Rosa Ríos
- KSP ManualUploaded byCésar Sampedro Estrada
- Latex Math SymbolsUploaded byvagver13
- Cubical CAMPUploaded bychakri474
- ti2Uploaded byTanvir Ahmed Syed
- c++ practice codes for competitions.docxUploaded bydeemalhotra73
- 1_4 SubsettingUploaded byintj2001712
- Matlab IntroUploaded byMaira Ruiz
- 21_PhDThesisEduardCalvoUploaded byMarko Radovanovic
- algebra 2h ab scheduleUploaded byapi-424407994
- ComputabilityUploaded byAnonymous erhFIZ
- Paper - i (Question Paper)Uploaded bywimpy123
- Matrix Diagram.docxUploaded byMelanie Paris
- Math LesterUploaded byEvan Charl Moraleda
- Courses of Study - MALUploaded byAbhishek Singh
- Cell FormationUploaded byAmrik Singh
- ET-101(A)Uploaded bymurugan_collegeman
- Intro MatlabUploaded byVictor Nunes
- 150721275-High-Frequency-Theory-of-Power-Transformers.pdfUploaded byify
- 2008-Hafeznia Et Al-A New Model to Measure National PowerUploaded byAvatarxerpekexerxes Ñope Ñope
- (International Series of Numerical Mathematics _ Internationale Schriftenreihe zur Numerischen Mathematik _ Série Internationale D’Analyse Numérique 14) John Todd (auth.)-Basic Numerical Mathematics_ .pdfUploaded byaufal Riswan

- pages259_292.pdfUploaded byHana Hamid
- pages259_292.pdfUploaded byHana Hamid
- TopicsUploaded byHana Hamid
- TopicsUploaded byHana Hamid
- pages192_224Uploaded byHana Hamid
- Bahagian bUploaded byHana Hamid
- pages180_189Uploaded byHana Hamid
- pages290_317Uploaded byHana Hamid
- pages290_317Uploaded byHana Hamid
- pages290_317Uploaded byHana Hamid
- Pages 497Uploaded byHana Hamid
- ECOC1Uploaded byHana Hamid
- pages224_259Uploaded byHana Hamid
- pages224_259Uploaded byHana Hamid
- Course OutlineUploaded byHana Hamid
- pages9_53Uploaded byHana Hamid
- Example of a Proposal - Exam Question3Uploaded byHana Hamid
- pages116_143Uploaded byHana Hamid
- pages116_143Uploaded byHana Hamid
- Report 1 and Assignment 1_0611866Uploaded byHana Hamid
- Report 1 and Assignment 1_0611866Uploaded byHana Hamid
- pages55_66Uploaded byHana Hamid
- CoverUploaded byHana Hamid
- asgn 3Uploaded byHana Hamid
- asgn 2Uploaded byHana Hamid
- asgn 5Uploaded byHana Hamid
- pages145_160pdfUploaded byHana Hamid
- Simulink IntroUploaded byHana Hamid
- pages2_7Uploaded byHana Hamid

- 247 NotesUploaded bysdrew
- ch05.pptUploaded byazzazazaza
- Aect360 Lecture 8Uploaded byUmar Kida
- Work Inspection Request Sample FormatUploaded bygreg
- Cuplock Brochure v 1Uploaded byHardik Chheda
- Production Planning and Inventory ControlUploaded byWafiik Aumeer
- Lundquist Wikipedia Fortune Global 500 Research Executive SummaryUploaded byLundquist srl
- -913748487.xlsxUploaded byMohamedFerras
- What-is-Mental-Toughness.pdfUploaded byKalliammah Krishnan
- Infineon AN409 an v01 00 EnUploaded byManoel Camargo Sampaio
- Seanewdim Hum Soc ii9 Issue 53Uploaded byseanewdim
- Alignment Tests on LatheUploaded byCharles Ondieki
- HW3_Spring2015_SolutionsUploaded byyashar2500
- DigiPoints - Issue 3-02 - Digital TVUploaded byTito Johnson
- form A & B For DSTUploaded byRam Mohan Rao Makineni
- Feminism&TechUploaded bylisabrundage
- Batch Management & Control (Including S88)Uploaded byphilongbk
- Binary Decimal HexUploaded by666667
- 198809IS_Aisan2BarrelUploaded byPaul
- Duct IlityUploaded byMehman Nasibov
- Notes ch.20Uploaded byffeelgood
- List of Deactivated Agents11Uploaded bySahib Kaur
- Mg t 303 Lecture Notes 3Uploaded byqwang1993
- Environmental and Economic Analysis of Thermal Active Building SystemUploaded byAnonymous 7VPPkWS8O
- Cast Resin TransformersUploaded byGabetsos Karaflidis
- Wto Accesion and Required ProductUploaded bygosaye desalegn
- Validating a ScenarioUploaded bySharky
- hw05-solution.pdfUploaded bysiddharth1k
- Conc Notes S05Uploaded bySusána Sgf
- Kaalsarp WithTypes and RemediesUploaded bySabarinathan Arthanari