12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Beyond</strong> the <strong>Basics</strong>PreludeThis part <strong>of</strong> the book assumes that you already have some competencywith matlab. You may have been using it for a while <strong>and</strong> you find youwant to do more with it. Perhaps you have seen what other people do<strong>and</strong> are wondering how it is done. Well, read on.This part <strong>of</strong> the book follows an introductory course in matlab(Part I) that covered the basics: matrices, typing shortcuts, basic graphics,basic algebra <strong>and</strong> data analysis, basics <strong>of</strong> m-files <strong>and</strong> data files, <strong>and</strong>a few simple applications, such as curve fitting, FFTs, <strong>and</strong> sound. Basich<strong>and</strong>le graphics were introduced using set <strong>and</strong> get.We begin by looking at sparse matrices <strong>and</strong> strings, go on to dealwith some <strong>of</strong> the data types that are new to matlab version 5: cellarrays, multidimensional arrays <strong>and</strong> structures, then deal with a variety<strong>of</strong> topics that you will probably have to deal with at some stage if you area frequent user <strong>of</strong> matlab. The book can be worked through from startto finish, but if you are not interested in a particular topic, you can skipover it without affecting your underst<strong>and</strong>ing <strong>of</strong> later topics. Exercisesare given throughout the book, <strong>and</strong> answers to most <strong>of</strong> them are givenat the end. We start by introducing some new variable types that gobeyond the functionality <strong>of</strong> a rectangular matrix.25 Sparse ArraysIn some applications, matrices have only a few non-zero elements. Suchmatrices might arise, for example, when analysing communication networksor when performing finite element modelling. matlab providessparse arrays for dealing with such cases. Sparse arrays take up muchless storage space <strong>and</strong> calculation time than full arrays.c○ 2000 by CRC Press LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!