Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
3Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Math Lab

Math Lab

Ratings: (0)|Views: 129|Likes:
Published by mynoytech

More info:

Published by: mynoytech on Oct 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/07/2012

pdf

text

original

 
M
ATLAB
array manipulation tips and tricks
Peter J. AcklamE-mail:
URL:
18th October 2003
 
Copyright © 2000–2003 Peter J. Acklam. All rights reserved.Any material in this document may be reproduced or duplicated for personal or educational use.M
ATLAB
is a trademark of The MathWorks, Inc.TEX is a trademark of the American Mathematical Society.Adobe, Acrobat, Acrobat Reader, and PostScript are trademarks of Adobe Systems Incorporated.
 
Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
1.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Advantages and disadvantages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.1 Portability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.2 Verbosity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2.3 Speed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2.4 Obscurity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2.5 Difficulty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.3 Words of warning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1 Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2 Built-in functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.3 M-file functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Size. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.1.1 Size along a specific dimension. . . . . . . . . . . . . . . . . . . . . . . . 63.1.2 Size along multiple dimensions. . . . . . . . . . . . . . . . . . . . . . . . 63.2 Dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2.1 Number of dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2.2 Singleton dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.3 Number of elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.3.1 Empty arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1 Creating a constant array. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105.1.1 When the class is determined by the scalar to replicate. . . . . . . . . . . . 105.1.2 When the class is stored in a string variable. . . . . . . . . . . . . . . . . . 115.2 Special vectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115.2.1 Uniformly spaced elements. . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.1 Vectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126.2 Matrices and arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12ii

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->