Programming and Graphics
F.4Elementary examples 349 Numerical value assignment and subtraction: >> clear >> a=1; b=-3; c=a-b c= 4 Number m ...
350 Introduction to C++ Programming and Graphics Matrix definition, addition, and multiplication: >>a=[12;34] a= 12 34 & ...
F.4Elementary examples 351 for loop: >> for j=-1:1 j end j= -1 j= 0 j= 1 In this example, the first three lines are ente ...
352 Introduction to C++ Programming and Graphics while loop: >> i=0; >> while i<2, i=i+1; disp(i), end 1 2 The ...
F.6User-defined functions 353 Function Purpose abs Absolute value acos Inverse cosine acosh Inverse hyperbolic cosine acot Inver ...
354 Introduction to C++ Programming and Graphics Function Purpose sec Secant sech Hyperbolic secant sign Signum function sin Sin ...
F.7Numerical methods 355 If a function evaluates only one number, vector, matrix, character string, entity or object, then the f ...
356 Introduction to C++ Programming and Graphics Function Purpose cat Concatenate arrays cond Condition number of a matrix det M ...
F.8Matlabgraphics 357 Two-dimensional graphs bar Bar graph comet Animated comet plot compass Compass plot errorbar Error bar plo ...
358 Introduction to C++ Programming and Graphics contourc Contour plot computation (used by contour) image Display image imagesc ...
F.8Matlabgraphics 359 text Text annotation title Graph title xlabel x-axis label ylabel y-axis label zlabel z-axis label for thr ...
360 Introduction to C++ Programming and Graphics Graphics operations delete Delete object drawnow Flush pending graphics events ...
F.8Matlabgraphics 361 Color maps bone Gray-scale with a tinge of blue color map contrast Contrast-enhancing gray-scale color map ...
362 Introduction to C++ Programming and Graphics Graph of the function:f(x)=sin^3 (πx) >> x=-1.0:0.01:1.0; % define an a ...
F.8Matlabgraphics 363 Paint a polygon in black: >> x =[0.0 1.0 1.0]; y=[0.0 0.0 1.0]; c=’k’; >> fill (x,y,c) >& ...
The Standard Template Library G C++ is endowed with the standard template library (STL), which offers a variety of utility funct ...
G The Standard Template Library 365 Alist is a sequence of elements stored in a linked list. Compared to vectors, the list offer ...
Index .a, 199 .so, 199 ifndef, 183 Fortran 77, 325 Matlab, 325 Glui, 252, 281 Glut, 252 Gtk+, 252, 283 Mesa, 252 RANDMAX,78 andb ...
368 Introduction to C++ Programming and Graphics attributes, 149 base class, 185 abstract, 191 bash, 315 binary executable, 17 f ...
Index 369 DOS, 288 double buffering, 207, 273 DRAM, 14 DVD, 1 dvi, 43 Ebyte, 5 ECS, 9 editor, 24 EEPROM, 15 eigenvalue, 308 eige ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf