Attachment 'Matlab_diary.txt'
Download 1 a = [ 45 63 12 ]:
2 ??? a = [ 45 63 12 ]:
3 |
4 Error: Expression or statement is incomplete or incorrect.
5
6 a = [ 45, 63, 12 ]:
7 ??? a = [ 45, 63, 12 ]:
8 |
9 Error: Expression or statement is incomplete or incorrect.
10
11 a = [ 45, 63, 12 ];
12 whos
13 Name Size Bytes Class Attributes
14
15 a 1x3 24 double
16 ans 1x1 8 double
17 b 1x1 8 double
18 d 1x1 8 double
19
20 a
21
22 a =
23
24 45 63 12
25
26 a = [ 45 63 12 ];
27 a(1)
28
29 ans =
30
31 45
32
33 a(2) = 344.53;
34 a
35
36 a =
37
38 45.0000 344.5300 12.0000
39
40 a([1 2])
41
42 ans =
43
44 45.0000 344.5300
45
46 a([1 2])
47
48 ans =
49
50 45.0000 344.5300
51
52 a([1 4])
53 ??? Index exceeds matrix dimensions.
54
55 1:10
56
57 ans =
58
59 1 2 3 4 5 6 7 8 9 10
60
61 a +
62 ??? Error: "a" was previously used as a variable,
63 conflicting with its use here as the name of a function or command.
64 See MATLAB Programming, "Determining Which Function Is Called" for details.
65
66 a = rand(1, 10);
67 a
68
69 a =
70
71 Columns 1 through 7
72
73 0.8147 0.9058 0.1270 0.9134 0.6324 0.0975 0.2785
74
75 Columns 8 through 10
76
77 0.5469 0.9575 0.9649
78
79 a( [1 2 3 4 5] )
80
81 ans =
82
83 0.8147 0.9058 0.1270 0.9134 0.6324
84
85 a( 1:5 )
86
87 ans =
88
89 0.8147 0.9058 0.1270 0.9134 0.6324
90
91 a( [1 2 3 4 5] )
92
93 ans =
94
95 0.8147 0.9058 0.1270 0.9134 0.6324
96
97 a( 1 2 3 4 5 )
98 ??? a( 1 2 3 4 5 )
99 |
100 Error: Unexpected MATLAB expression.
101
102 a( 1:5 )
103
104 ans =
105
106 0.8147 0.9058 0.1270 0.9134 0.6324
107
108 a( 5:end )
109
110 ans =
111
112 0.6324 0.0975 0.2785 0.5469 0.9575 0.9649
113
114 1:2:10
115
116 ans =
117
118 1 3 5 7 9
119
120 a( end:-1:1 )
121
122 ans =
123
124 Columns 1 through 7
125
126 0.9649 0.9575 0.5469 0.2785 0.0975 0.6324 0.9134
127
128 Columns 8 through 10
129
130 0.1270 0.9058 0.8147
131
132 help
133 HELP topics:
134
135 matlab/general - General purpose commands.
136 matlab/ops - Operators and special characters.
137 matlab/lang - Programming language constructs.
138 matlab/elmat - Elementary matrices and matrix manipulation.
139 matlab/elfun - Elementary math functions.
140 matlab/specfun - Specialized math functions.
141 matlab/matfun - Matrix functions - numerical linear algebra.
142 matlab/datafun - Data analysis and Fourier transforms.
143 matlab/polyfun - Interpolation and polynomials.
144 matlab/funfun - Function functions and ODE solvers.
145 matlab/sparfun - Sparse matrices.
146 matlab/scribe - Annotation and Plot Editing.
147 matlab/graph2d - Two dimensional graphs.
148 matlab/graph3d - Three dimensional graphs.
149 matlab/specgraph - Specialized graphs.
150 matlab/graphics - Handle Graphics.
151 matlab/uitools - Graphical User Interface Tools.
152 matlab/strfun - Character strings.
153 matlab/imagesci - Image and scientific data input/output.
154 matlab/iofun - File input and output.
155 matlab/audiovideo - Audio and Video support.
156 matlab/timefun - Time and dates.
157 matlab/datatypes - Data types and structures.
158 matlab/verctrl - Version control.
159 matlab/codetools - Commands for creating and debugging code.
160 matlab/helptools - Help commands.
161 matlab/demos - Examples and demonstrations.
162 matlab/timeseries - Time series data visualization and exploration.
163 matlab/hds - (No table of contents file)
164 matlab/guide - Graphical User Interface Tools.
165 matlab/plottools - Graphical User Interface Tools.
166 toolbox/local - General preferences and configuration information.
167 shared/controllib - Control Library
168 simulink/simulink - Simulink
169 simulink/blocks - Simulink block library.
170 simulink/components - Simulink components.
171 simulink/fixedandfloat - Simulink Fixed Point utilities.
172 fixedandfloat/fxpdemos - Simulink Fixed Point Demos
173 fixedandfloat/obsolete - (No table of contents file)
174 simulink/simdemos - Simulink demonstrations and examples.
175 simdemos/aerospace - Simulink: Aerospace model demonstrations and samples.
176 simdemos/automotive - Simulink: Automotive model demonstrations and samples.
177 simdemos/simfeatures - Simulink: Feature demonstrations and samples.
178 simdemos/simgeneral - Simulink: General model demonstrations and samples.
179 simulink/dee - Differential Equation Editor
180 shared/dastudio - (No table of contents file)
181 shared/glue - (No table of contents file)
182 stateflow/stateflow - Stateflow
183 rtw/rtw - (No table of contents file)
184 simulink/modeladvisor - (No table of contents file)
185 modeladvisor/fixpt - (No table of contents file)
186 simulink/MPlayIO - (No table of contents file)
187 simulink/dataobjectwizard - (No table of contents file)
188 shared/fixedpointlib - (No table of contents file)
189 simulink/dataimportexport - (No table of contents file)
190 shared/hdlshared - (No table of contents file)
191 stateflow/sfdemos - Stateflow demonstrations and samples.
192 stateflow/coder - (No table of contents file)
193 eml/eml - (No table of contents file)
194 emlcoder/emlcoder - Embedded MATLAB Coder.
195 emlcoder/emlcodermex - (No table of contents file)
196 fixedpoint/fixedpoint - (No table of contents file)
197 fixedpoint/fidemos - (No table of contents file)
198 images/images - Image Processing Toolbox
199 images/imuitools - Image Processing Toolbox --- imuitools
200 images/imdemos - Image Processing Toolbox --- demos and sample images
201 images/iptutils - Image Processing Toolbox --- utilities
202 shared/imageslib - Image Processing Toolbox Library
203 images/medformats - Image Processing Toolbox --- Medical formats
204 slvnv/simcoverage - (No table of contents file)
205 optim/optim - Optimization Toolbox
206 optim/optimdemos -
207 shared/optimlib - Optimization Toolbox Library
208 signal/signal - Signal Processing Toolbox
209 signal/sigtools - (No table of contents file)
210 signal/sptoolgui - (No table of contents file)
211 signal/sigdemos - (No table of contents file)
212 shared/spcuilib - (No table of contents file)
213 toolbox/stats - Statistics Toolbox
214 vr/vr - (No table of contents file)
215 vr/vrdemos - Virtual Reality Toolbox examples.
216 matlab/work - (No table of contents file)
217
218 help colon
219 : Colon.
220 J:K is the same as [J, J+1, ..., K].
221 J:K is empty if J > K.
222 J:D:K is the same as [J, J+D, ..., J+m*D] where m = fix((K-J)/D).
223 J:D:K is empty if D == 0, if D > 0 and J > K, or if D < 0 and J < K.
224
225 COLON(J,K) is the same as J:K and COLON(J,D,K) is the same as J:D:K.
226
227 The colon notation can be used to pick out selected rows, columns
228 and elements of vectors, matrices, and arrays. A(:) is all the
229 elements of A, regarded as a single column. On the left side of an
230 assignment statement, A(:) fills A, preserving its shape from before.
231 A(:,J) is the J-th column of A. A(J:K) is [A(J),A(J+1),...,A(K)].
232 A(:,J:K) is [A(:,J),A(:,J+1),...,A(:,K)] and so on.
233
234 The colon notation can be used with a cell array to produce a comma-
235 separated list. C{:} is the same as C{1},C{2},...,C{end}. The comma
236 separated list syntax is valid inside () for function calls, [] for
237 concatenation and function return arguments, and inside {} to produce
238 a cell array. Expressions such as S(:).name produce the comma separated
239 list S(1).name,S(2).name,...,S(end).name for the structure S.
240
241 For the use of the colon in the FOR statement, See FOR.
242 For the use of the colon in a comma separated list, See VARARGIN.
243
244 help colon
245 : Colon.
246 J:K is the same as [J, J+1, ..., K].
247 J:K is empty if J > K.
248 J:D:K is the same as [J, J+D, ..., J+m*D] where m = fix((K-J)/D).
249 J:D:K is empty if D == 0, if D > 0 and J > K, or if D < 0 and J < K.
250
251 COLON(J,K) is the same as J:K and COLON(J,D,K) is the same as J:D:K.
252
253 The colon notation can be used to pick out selected rows, columns
254 and elements of vectors, matrices, and arrays. A(:) is all the
255 elements of A, regarded as a single column. On the left side of an
256 assignment statement, A(:) fills A, preserving its shape from before.
257 A(:,J) is the J-th column of A. A(J:K) is [A(J),A(J+1),...,A(K)].
258 A(:,J:K) is [A(:,J),A(:,J+1),...,A(:,K)] and so on.
259
260 The colon notation can be used with a cell array to produce a comma-
261 separated list. C{:} is the same as C{1},C{2},...,C{end}. The comma
262 separated list syntax is valid inside () for function calls, [] for
263 concatenation and function return arguments, and inside {} to produce
264 a cell array. Expressions such as S(:).name produce the comma separated
265 list S(1).name,S(2).name,...,S(end).name for the structure S.
266
267 For the use of the colon in the FOR statement, See FOR.
268 For the use of the colon in a comma separated list, See VARARGIN.
269
270 A = [ 5 22 3; 9 0 -8; 2.3 4 1 ]
271
272 A =
273
274 5.0000 22.0000 3.0000
275 9.0000 0 -8.0000
276 2.3000 4.0000 1.0000
277
278 whos
279 Name Size Bytes Class Attributes
280
281 A 3x3 72 double
282 a 1x10 80 double
283 ans 1x10 80 double
284 b 1x1 8 double
285 d 1x1 8 double
286
287 B = [ 1 2 ];
288 whos
289 Name Size Bytes Class Attributes
290
291 A 3x3 72 double
292 B 1x2 16 double
293 a 1x10 80 double
294 ans 1x10 80 double
295 b 1x1 8 double
296 d 1x1 8 double
297
298 A
299
300 A =
301
302 5.0000 22.0000 3.0000
303 9.0000 0 -8.0000
304 2.3000 4.0000 1.0000
305
306 A(1,1)
307
308 ans =
309
310 5
311
312 A(2, 2)
313
314 ans =
315
316 0
317
318 A(3, 3)
319
320 ans =
321
322 1
323
324 A(3, 3) = 888;
325 A
326
327 A =
328
329 5.0000 22.0000 3.0000
330 9.0000 0 -8.0000
331 2.3000 4.0000 888.0000
332
333 A(1:end,1)
334
335 ans =
336
337 5.0000
338 9.0000
339 2.3000
340
341 A(:,1)
342
343 ans =
344
345 5.0000
346 9.0000
347 2.3000
348
349 A(:,[1 3])
350
351 ans =
352
353 5.0000 3.0000
354 9.0000 -8.0000
355 2.3000 888.0000
356
357 A(2,:)
358
359 ans =
360
361 9 0 -8
362
363 A([1 2], [1 2])
364
365 ans =
366
367 5 22
368 9 0
369
370 A
371
372 A =
373
374 5.0000 22.0000 3.0000
375 9.0000 0 -8.0000
376 2.3000 4.0000 888.0000
377
378 A(3)
379
380 ans =
381
382 2.3000
383
384 A(9)
385
386 ans =
387
388 888
389
390 A(2,:) = A(1,:);
391 A
392
393 A =
394
395 5.0000 22.0000 3.0000
396 5.0000 22.0000 3.0000
397 2.3000 4.0000 888.0000
398
399 A(:,2) = 0:
400 ??? A(:,2) = 0:
401 |
402 Error: Expression or statement is incomplete or incorrect.
403
404 A(:,2) = 0;
405 A
406
407 A =
408
409 5.0000 0 3.0000
410 5.0000 0 3.0000
411 2.3000 0 888.0000
412
413 B = [ A A A ]
414
415 B =
416
417 Columns 1 through 7
418
419 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
420 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
421 2.3000 0 888.0000 2.3000 0 888.0000 2.3000
422
423 Columns 8 through 9
424
425 0 3.0000
426 0 3.0000
427 0 888.0000
428
429 B = [ A; A; A ]
430
431 B =
432
433 5.0000 0 3.0000
434 5.0000 0 3.0000
435 2.3000 0 888.0000
436 5.0000 0 3.0000
437 5.0000 0 3.0000
438 2.3000 0 888.0000
439 5.0000 0 3.0000
440 5.0000 0 3.0000
441 2.3000 0 888.0000
442
443 repmat(A, [1 3 ])
444
445 ans =
446
447 Columns 1 through 7
448
449 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
450 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
451 2.3000 0 888.0000 2.3000 0 888.0000 2.3000
452
453 Columns 8 through 9
454
455 0 3.0000
456 0 3.0000
457 0 888.0000
458
459 [A A A]
460
461 ans =
462
463 Columns 1 through 7
464
465 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
466 5.0000 0 3.0000 5.0000 0 3.0000 5.0000
467 2.3000 0 888.0000 2.3000 0 888.0000 2.3000
468
469 Columns 8 through 9
470
471 0 3.0000
472 0 3.0000
473 0 888.0000
474
475 repmat(A, [3 1])
476
477 ans =
478
479 5.0000 0 3.0000
480 5.0000 0 3.0000
481 2.3000 0 888.0000
482 5.0000 0 3.0000
483 5.0000 0 3.0000
484 2.3000 0 888.0000
485 5.0000 0 3.0000
486 5.0000 0 3.0000
487 2.3000 0 888.0000
488
489 repmat(A, [3 2])
490
491 ans =
492
493 5.0000 0 3.0000 5.0000 0 3.0000
494 5.0000 0 3.0000 5.0000 0 3.0000
495 2.3000 0 888.0000 2.3000 0 888.0000
496 5.0000 0 3.0000 5.0000 0 3.0000
497 5.0000 0 3.0000 5.0000 0 3.0000
498 2.3000 0 888.0000 2.3000 0 888.0000
499 5.0000 0 3.0000 5.0000 0 3.0000
500 5.0000 0 3.0000 5.0000 0 3.0000
501 2.3000 0 888.0000 2.3000 0 888.0000
502
503 repmat(A, [100 2])
504
505 ans =
506
507 5.0000 0 3.0000 5.0000 0 3.0000
508 5.0000 0 3.0000 5.0000 0 3.0000
509 2.3000 0 888.0000 2.3000 0 888.0000
510 5.0000 0 3.0000 5.0000 0 3.0000
511 5.0000 0 3.0000 5.0000 0 3.0000
512 2.3000 0 888.0000 2.3000 0 888.0000
513 5.0000 0 3.0000 5.0000 0 3.0000
514 5.0000 0 3.0000 5.0000 0 3.0000
515 2.3000 0 888.0000 2.3000 0 888.0000
516 5.0000 0 3.0000 5.0000 0 3.0000
517 5.0000 0 3.0000 5.0000 0 3.0000
518 2.3000 0 888.0000 2.3000 0 888.0000
519 5.0000 0 3.0000 5.0000 0 3.0000
520 5.0000 0 3.0000 5.0000 0 3.0000
521 2.3000 0 888.0000 2.3000 0 888.0000
522 5.0000 0 3.0000 5.0000 0 3.0000
523 5.0000 0 3.0000 5.0000 0 3.0000
524 2.3000 0 888.0000 2.3000 0 888.0000
525 5.0000 0 3.0000 5.0000 0 3.0000
526 5.0000 0 3.0000 5.0000 0 3.0000
527 2.3000 0 888.0000 2.3000 0 888.0000
528 5.0000 0 3.0000 5.0000 0 3.0000
529 5.0000 0 3.0000 5.0000 0 3.0000
530 2.3000 0 888.0000 2.3000 0 888.0000
531 5.0000 0 3.0000 5.0000 0 3.0000
532 5.0000 0 3.0000 5.0000 0 3.0000
533 2.3000 0 888.0000 2.3000 0 888.0000
534 5.0000 0 3.0000 5.0000 0 3.0000
535 5.0000 0 3.0000 5.0000 0 3.0000
536 2.3000 0 888.0000 2.3000 0 888.0000
537 5.0000 0 3.0000 5.0000 0 3.0000
538 5.0000 0 3.0000 5.0000 0 3.0000
539 2.3000 0 888.0000 2.3000 0 888.0000
540 5.0000 0 3.0000 5.0000 0 3.0000
541 5.0000 0 3.0000 5.0000 0 3.0000
542 2.3000 0 888.0000 2.3000 0 888.0000
543 5.0000 0 3.0000 5.0000 0 3.0000
544 5.0000 0 3.0000 5.0000 0 3.0000
545 2.3000 0 888.0000 2.3000 0 888.0000
546 5.0000 0 3.0000 5.0000 0 3.0000
547 5.0000 0 3.0000 5.0000 0 3.0000
548 2.3000 0 888.0000 2.3000 0 888.0000
549 5.0000 0 3.0000 5.0000 0 3.0000
550 5.0000 0 3.0000 5.0000 0 3.0000
551 2.3000 0 888.0000 2.3000 0 888.0000
552 5.0000 0 3.0000 5.0000 0 3.0000
553 5.0000 0 3.0000 5.0000 0 3.0000
554 2.3000 0 888.0000 2.3000 0 888.0000
555 5.0000 0 3.0000 5.0000 0 3.0000
556 5.0000 0 3.0000 5.0000 0 3.0000
557 2.3000 0 888.0000 2.3000 0 888.0000
558 5.0000 0 3.0000 5.0000 0 3.0000
559 5.0000 0 3.0000 5.0000 0 3.0000
560 2.3000 0 888.0000 2.3000 0 888.0000
561 5.0000 0 3.0000 5.0000 0 3.0000
562 5.0000 0 3.0000 5.0000 0 3.0000
563 2.3000 0 888.0000 2.3000 0 888.0000
564 5.0000 0 3.0000 5.0000 0 3.0000
565 5.0000 0 3.0000 5.0000 0 3.0000
566 2.3000 0 888.0000 2.3000 0 888.0000
567 5.0000 0 3.0000 5.0000 0 3.0000
568 5.0000 0 3.0000 5.0000 0 3.0000
569 2.3000 0 888.0000 2.3000 0 888.0000
570 5.0000 0 3.0000 5.0000 0 3.0000
571 5.0000 0 3.0000 5.0000 0 3.0000
572 2.3000 0 888.0000 2.3000 0 888.0000
573 5.0000 0 3.0000 5.0000 0 3.0000
574 5.0000 0 3.0000 5.0000 0 3.0000
575 2.3000 0 888.0000 2.3000 0 888.0000
576 5.0000 0 3.0000 5.0000 0 3.0000
577 5.0000 0 3.0000 5.0000 0 3.0000
578 2.3000 0 888.0000 2.3000 0 888.0000
579 5.0000 0 3.0000 5.0000 0 3.0000
580 5.0000 0 3.0000 5.0000 0 3.0000
581 2.3000 0 888.0000 2.3000 0 888.0000
582 5.0000 0 3.0000 5.0000 0 3.0000
583 5.0000 0 3.0000 5.0000 0 3.0000
584 2.3000 0 888.0000 2.3000 0 888.0000
585 5.0000 0 3.0000 5.0000 0 3.0000
586 5.0000 0 3.0000 5.0000 0 3.0000
587 2.3000 0 888.0000 2.3000 0 888.0000
588 5.0000 0 3.0000 5.0000 0 3.0000
589 5.0000 0 3.0000 5.0000 0 3.0000
590 2.3000 0 888.0000 2.3000 0 888.0000
591 5.0000 0 3.0000 5.0000 0 3.0000
592 5.0000 0 3.0000 5.0000 0 3.0000
593 2.3000 0 888.0000 2.3000 0 888.0000
594 5.0000 0 3.0000 5.0000 0 3.0000
595 5.0000 0 3.0000 5.0000 0 3.0000
596 2.3000 0 888.0000 2.3000 0 888.0000
597 5.0000 0 3.0000 5.0000 0 3.0000
598 5.0000 0 3.0000 5.0000 0 3.0000
599 2.3000 0 888.0000 2.3000 0 888.0000
600 5.0000 0 3.0000 5.0000 0 3.0000
601 5.0000 0 3.0000 5.0000 0 3.0000
602 2.3000 0 888.0000 2.3000 0 888.0000
603 5.0000 0 3.0000 5.0000 0 3.0000
604 5.0000 0 3.0000 5.0000 0 3.0000
605 2.3000 0 888.0000 2.3000 0 888.0000
606 5.0000 0 3.0000 5.0000 0 3.0000
607 5.0000 0 3.0000 5.0000 0 3.0000
608 2.3000 0 888.0000 2.3000 0 888.0000
609 5.0000 0 3.0000 5.0000 0 3.0000
610 5.0000 0 3.0000 5.0000 0 3.0000
611 2.3000 0 888.0000 2.3000 0 888.0000
612 5.0000 0 3.0000 5.0000 0 3.0000
613 5.0000 0 3.0000 5.0000 0 3.0000
614 2.3000 0 888.0000 2.3000 0 888.0000
615 5.0000 0 3.0000 5.0000 0 3.0000
616 5.0000 0 3.0000 5.0000 0 3.0000
617 2.3000 0 888.0000 2.3000 0 888.0000
618 5.0000 0 3.0000 5.0000 0 3.0000
619 5.0000 0 3.0000 5.0000 0 3.0000
620 2.3000 0 888.0000 2.3000 0 888.0000
621 5.0000 0 3.0000 5.0000 0 3.0000
622 5.0000 0 3.0000 5.0000 0 3.0000
623 2.3000 0 888.0000 2.3000 0 888.0000
624 5.0000 0 3.0000 5.0000 0 3.0000
625 5.0000 0 3.0000 5.0000 0 3.0000
626 2.3000 0 888.0000 2.3000 0 888.0000
627 5.0000 0 3.0000 5.0000 0 3.0000
628 5.0000 0 3.0000 5.0000 0 3.0000
629 2.3000 0 888.0000 2.3000 0 888.0000
630 5.0000 0 3.0000 5.0000 0 3.0000
631 5.0000 0 3.0000 5.0000 0 3.0000
632 2.3000 0 888.0000 2.3000 0 888.0000
633 5.0000 0 3.0000 5.0000 0 3.0000
634 5.0000 0 3.0000 5.0000 0 3.0000
635 2.3000 0 888.0000 2.3000 0 888.0000
636 5.0000 0 3.0000 5.0000 0 3.0000
637 5.0000 0 3.0000 5.0000 0 3.0000
638 2.3000 0 888.0000 2.3000 0 888.0000
639 5.0000 0 3.0000 5.0000 0 3.0000
640 5.0000 0 3.0000 5.0000 0 3.0000
641 2.3000 0 888.0000 2.3000 0 888.0000
642 5.0000 0 3.0000 5.0000 0 3.0000
643 5.0000 0 3.0000 5.0000 0 3.0000
644 2.3000 0 888.0000 2.3000 0 888.0000
645 5.0000 0 3.0000 5.0000 0 3.0000
646 5.0000 0 3.0000 5.0000 0 3.0000
647 2.3000 0 888.0000 2.3000 0 888.0000
648 5.0000 0 3.0000 5.0000 0 3.0000
649 5.0000 0 3.0000 5.0000 0 3.0000
650 2.3000 0 888.0000 2.3000 0 888.0000
651 5.0000 0 3.0000 5.0000 0 3.0000
652 5.0000 0 3.0000 5.0000 0 3.0000
653 2.3000 0 888.0000 2.3000 0 888.0000
654 5.0000 0 3.0000 5.0000 0 3.0000
655 5.0000 0 3.0000 5.0000 0 3.0000
656 2.3000 0 888.0000 2.3000 0 888.0000
657 5.0000 0 3.0000 5.0000 0 3.0000
658 5.0000 0 3.0000 5.0000 0 3.0000
659 2.3000 0 888.0000 2.3000 0 888.0000
660 5.0000 0 3.0000 5.0000 0 3.0000
661 5.0000 0 3.0000 5.0000 0 3.0000
662 2.3000 0 888.0000 2.3000 0 888.0000
663 5.0000 0 3.0000 5.0000 0 3.0000
664 5.0000 0 3.0000 5.0000 0 3.0000
665 2.3000 0 888.0000 2.3000 0 888.0000
666 5.0000 0 3.0000 5.0000 0 3.0000
667 5.0000 0 3.0000 5.0000 0 3.0000
668 2.3000 0 888.0000 2.3000 0 888.0000
669 5.0000 0 3.0000 5.0000 0 3.0000
670 5.0000 0 3.0000 5.0000 0 3.0000
671 2.3000 0 888.0000 2.3000 0 888.0000
672 5.0000 0 3.0000 5.0000 0 3.0000
673 5.0000 0 3.0000 5.0000 0 3.0000
674 2.3000 0 888.0000 2.3000 0 888.0000
675 5.0000 0 3.0000 5.0000 0 3.0000
676 5.0000 0 3.0000 5.0000 0 3.0000
677 2.3000 0 888.0000 2.3000 0 888.0000
678 5.0000 0 3.0000 5.0000 0 3.0000
679 5.0000 0 3.0000 5.0000 0 3.0000
680 2.3000 0 888.0000 2.3000 0 888.0000
681 5.0000 0 3.0000 5.0000 0 3.0000
682 5.0000 0 3.0000 5.0000 0 3.0000
683 2.3000 0 888.0000 2.3000 0 888.0000
684 5.0000 0 3.0000 5.0000 0 3.0000
685 5.0000 0 3.0000 5.0000 0 3.0000
686 2.3000 0 888.0000 2.3000 0 888.0000
687 5.0000 0 3.0000 5.0000 0 3.0000
688 5.0000 0 3.0000 5.0000 0 3.0000
689 2.3000 0 888.0000 2.3000 0 888.0000
690 5.0000 0 3.0000 5.0000 0 3.0000
691 5.0000 0 3.0000 5.0000 0 3.0000
692 2.3000 0 888.0000 2.3000 0 888.0000
693 5.0000 0 3.0000 5.0000 0 3.0000
694 5.0000 0 3.0000 5.0000 0 3.0000
695 2.3000 0 888.0000 2.3000 0 888.0000
696 5.0000 0 3.0000 5.0000 0 3.0000
697 5.0000 0 3.0000 5.0000 0 3.0000
698 2.3000 0 888.0000 2.3000 0 888.0000
699 5.0000 0 3.0000 5.0000 0 3.0000
700 5.0000 0 3.0000 5.0000 0 3.0000
701 2.3000 0 888.0000 2.3000 0 888.0000
702 5.0000 0 3.0000 5.0000 0 3.0000
703 5.0000 0 3.0000 5.0000 0 3.0000
704 2.3000 0 888.0000 2.3000 0 888.0000
705 5.0000 0 3.0000 5.0000 0 3.0000
706 5.0000 0 3.0000 5.0000 0 3.0000
707 2.3000 0 888.0000 2.3000 0 888.0000
708 5.0000 0 3.0000 5.0000 0 3.0000
709 5.0000 0 3.0000 5.0000 0 3.0000
710 2.3000 0 888.0000 2.3000 0 888.0000
711 5.0000 0 3.0000 5.0000 0 3.0000
712 5.0000 0 3.0000 5.0000 0 3.0000
713 2.3000 0 888.0000 2.3000 0 888.0000
714 5.0000 0 3.0000 5.0000 0 3.0000
715 5.0000 0 3.0000 5.0000 0 3.0000
716 2.3000 0 888.0000 2.3000 0 888.0000
717 5.0000 0 3.0000 5.0000 0 3.0000
718 5.0000 0 3.0000 5.0000 0 3.0000
719 2.3000 0 888.0000 2.3000 0 888.0000
720 5.0000 0 3.0000 5.0000 0 3.0000
721 5.0000 0 3.0000 5.0000 0 3.0000
722 2.3000 0 888.0000 2.3000 0 888.0000
723 5.0000 0 3.0000 5.0000 0 3.0000
724 5.0000 0 3.0000 5.0000 0 3.0000
725 2.3000 0 888.0000 2.3000 0 888.0000
726 5.0000 0 3.0000 5.0000 0 3.0000
727 5.0000 0 3.0000 5.0000 0 3.0000
728 2.3000 0 888.0000 2.3000 0 888.0000
729 5.0000 0 3.0000 5.0000 0 3.0000
730 5.0000 0 3.0000 5.0000 0 3.0000
731 2.3000 0 888.0000 2.3000 0 888.0000
732 5.0000 0 3.0000 5.0000 0 3.0000
733 5.0000 0 3.0000 5.0000 0 3.0000
734 2.3000 0 888.0000 2.3000 0 888.0000
735 5.0000 0 3.0000 5.0000 0 3.0000
736 5.0000 0 3.0000 5.0000 0 3.0000
737 2.3000 0 888.0000 2.3000 0 888.0000
738 5.0000 0 3.0000 5.0000 0 3.0000
739 5.0000 0 3.0000 5.0000 0 3.0000
740 2.3000 0 888.0000 2.3000 0 888.0000
741 5.0000 0 3.0000 5.0000 0 3.0000
742 5.0000 0 3.0000 5.0000 0 3.0000
743 2.3000 0 888.0000 2.3000 0 888.0000
744 5.0000 0 3.0000 5.0000 0 3.0000
745 5.0000 0 3.0000 5.0000 0 3.0000
746 2.3000 0 888.0000 2.3000 0 888.0000
747 5.0000 0 3.0000 5.0000 0 3.0000
748 5.0000 0 3.0000 5.0000 0 3.0000
749 2.3000 0 888.0000 2.3000 0 888.0000
750 5.0000 0 3.0000 5.0000 0 3.0000
751 5.0000 0 3.0000 5.0000 0 3.0000
752 2.3000 0 888.0000 2.3000 0 888.0000
753 5.0000 0 3.0000 5.0000 0 3.0000
754 5.0000 0 3.0000 5.0000 0 3.0000
755 2.3000 0 888.0000 2.3000 0 888.0000
756 5.0000 0 3.0000 5.0000 0 3.0000
757 5.0000 0 3.0000 5.0000 0 3.0000
758 2.3000 0 888.0000 2.3000 0 888.0000
759 5.0000 0 3.0000 5.0000 0 3.0000
760 5.0000 0 3.0000 5.0000 0 3.0000
761 2.3000 0 888.0000 2.3000 0 888.0000
762 5.0000 0 3.0000 5.0000 0 3.0000
763 5.0000 0 3.0000 5.0000 0 3.0000
764 2.3000 0 888.0000 2.3000 0 888.0000
765 5.0000 0 3.0000 5.0000 0 3.0000
766 5.0000 0 3.0000 5.0000 0 3.0000
767 2.3000 0 888.0000 2.3000 0 888.0000
768 5.0000 0 3.0000 5.0000 0 3.0000
769 5.0000 0 3.0000 5.0000 0 3.0000
770 2.3000 0 888.0000 2.3000 0 888.0000
771 5.0000 0 3.0000 5.0000 0 3.0000
772 5.0000 0 3.0000 5.0000 0 3.0000
773 2.3000 0 888.0000 2.3000 0 888.0000
774 5.0000 0 3.0000 5.0000 0 3.0000
775 5.0000 0 3.0000 5.0000 0 3.0000
776 2.3000 0 888.0000 2.3000 0 888.0000
777 5.0000 0 3.0000 5.0000 0 3.0000
778 5.0000 0 3.0000 5.0000 0 3.0000
779 2.3000 0 888.0000 2.3000 0 888.0000
780 5.0000 0 3.0000 5.0000 0 3.0000
781 5.0000 0 3.0000 5.0000 0 3.0000
782 2.3000 0 888.0000 2.3000 0 888.0000
783 5.0000 0 3.0000 5.0000 0 3.0000
784 5.0000 0 3.0000 5.0000 0 3.0000
785 2.3000 0 888.0000 2.3000 0 888.0000
786 5.0000 0 3.0000 5.0000 0 3.0000
787 5.0000 0 3.0000 5.0000 0 3.0000
788 2.3000 0 888.0000 2.3000 0 888.0000
789 5.0000 0 3.0000 5.0000 0 3.0000
790 5.0000 0 3.0000 5.0000 0 3.0000
791 2.3000 0 888.0000 2.3000 0 888.0000
792 5.0000 0 3.0000 5.0000 0 3.0000
793 5.0000 0 3.0000 5.0000 0 3.0000
794 2.3000 0 888.0000 2.3000 0 888.0000
795 5.0000 0 3.0000 5.0000 0 3.0000
796 5.0000 0 3.0000 5.0000 0 3.0000
797 2.3000 0 888.0000 2.3000 0 888.0000
798 5.0000 0 3.0000 5.0000 0 3.0000
799 5.0000 0 3.0000 5.0000 0 3.0000
800 2.3000 0 888.0000 2.3000 0 888.0000
801 5.0000 0 3.0000 5.0000 0 3.0000
802 5.0000 0 3.0000 5.0000 0 3.0000
803 2.3000 0 888.0000 2.3000 0 888.0000
804 5.0000 0 3.0000 5.0000 0 3.0000
805 5.0000 0 3.0000 5.0000 0 3.0000
806 2.3000 0 888.0000 2.3000 0 888.0000
807
808 help repmat
809 REPMAT Replicate and tile an array.
810 B = repmat(A,M,N) creates a large matrix B consisting of an M-by-N
811 tiling of copies of A. The size of B is [size(A,1)*M, size(A,2)*N].
812 The statement repmat(A,N) creates an N-by-N tiling.
813
814 B = REPMAT(A,[M N]) accomplishes the same result as repmat(A,M,N).
815
816 B = REPMAT(A,[M N P ...]) tiles the array A to produce a
817 multidimensional array B composed of copies of A. The size of B is
818 [size(A,1)*M, size(A,2)*N, size(A,3)*P, ...].
819
820 REPMAT(A,M,N) when A is a scalar is commonly used to produce an M-by-N
821 matrix filled with A's value and having A's CLASS. For certain values,
822 you may achieve the same results using other functions. Namely,
823 REPMAT(NAN,M,N) is the same as NAN(M,N)
824 REPMAT(SINGLE(INF),M,N) is the same as INF(M,N,'single')
825 REPMAT(INT8(0),M,N) is the same as ZEROS(M,N,'int8')
826 REPMAT(UINT32(1),M,N) is the same as ONES(M,N,'uint32')
827 REPMAT(EPS,M,N) is the same as EPS(ONES(M,N))
828
829 Example:
830 repmat(magic(2), 2, 3)
831 repmat(uint8(5), 2, 3)
832
833 Class support for input A:
834 float: double, single
835
836 See also BSXFUN, MESHGRID, ONES, ZEROS, NAN, INF.
837
838 Overloaded functions or methods (ones with the same name in other directories)
839 help categorical/repmat.m
840
841 size(B)
842
843 ans =
844
845 9 3
846
847 size(B, 1)
848
849 ans =
850
851 9
852
853 size(B, 2)
854
855 ans =
856
857 3
858
859 size(B, 2)
860
861 ans =
862
863 3
864
865 size(B, 3)
866
867 ans =
868
869 1
870
871 A
872
873 A =
874
875 5.0000 0 3.0000
876 5.0000 0 3.0000
877 2.3000 0 888.0000
878
879 A*A
880
881 ans =
882
883 1.0e+05 *
884
885 0.0003 0 0.0268
886 0.0003 0 0.0268
887 0.0205 0 7.8855
888
889 A = magic(3)
890
891 A =
892
893 8 1 6
894 3 5 7
895 4 9 2
896
897 A*A
898
899 ans =
900
901 91 67 67
902 67 91 67
903 67 67 91
904
905 A*magic(5)
906 ??? Error using ==> mtimes
907 Inner matrix dimensions must agree.
908
909 10*A
910
911 ans =
912
913 80 10 60
914 30 50 70
915 40 90 20
916
917 A - magic(3)
918
919 ans =
920
921 0 0 0
922 0 0 0
923 0 0 0
924
925 lookfor determinant
926 DET Determinant.
927 help det
928 DET Determinant.
929 DET(X) is the determinant of the square matrix X.
930
931 Use COND instead of DET to test for matrix singularity.
932
933 See also COND.
934
935 det(A)
936
937 ans =
938
939 -360
940
941 A
942
943 A =
944
945 8 1 6
946 3 5 7
947 4 9 2
948
949 B = rand(3,3):
950 ??? B = rand(3,3):
951 |
952 Error: Expression or statement is incomplete or incorrect.
953
954 B = rand(3,3);
955 A .* B
956
957 ans =
958
959 1.2609 0.4854 2.5306
960 2.9118 4.0014 6.4101
961 3.8287 1.2770 1.5844
962
963 A .^ 2
964
965 ans =
966
967 64 1 36
968 9 25 49
969 16 81 4
970
971 A
972
973 A =
974
975 8 1 6
976 3 5 7
977 4 9 2
978
979 A .* A
980
981 ans =
982
983 64 1 36
984 9 25 49
985 16 81 4
986
987 A
988
989 A =
990
991 8 1 6
992 3 5 7
993 4 9 2
994
995 sum(A,1)
996
997 ans =
998
999 15 15 15
1000
1001 sum(A,2)
1002
1003 ans =
1004
1005 15
1006 15
1007 15
1008
1009 diag(A)
1010
1011 ans =
1012
1013 8
1014 5
1015 2
1016
1017 sum(diag(A))
1018
1019 ans =
1020
1021 15
1022
1023 trace(A)
1024
1025 ans =
1026
1027 15
1028
1029 help elmat
1030 Elementary matrices and matrix manipulation.
1031
1032 Elementary matrices.
1033 zeros - Zeros array.
1034 ones - Ones array.
1035 eye - Identity matrix.
1036 repmat - Replicate and tile array.
1037 rand - Uniformly distributed random numbers.
1038 randn - Normally distributed random numbers.
1039 linspace - Linearly spaced vector.
1040 logspace - Logarithmically spaced vector.
1041 freqspace - Frequency spacing for frequency response.
1042 meshgrid - X and Y arrays for 3-D plots.
1043 accumarray - Construct an array with accumulation.
1044 : - Regularly spaced vector and index into matrix.
1045
1046 Basic array information.
1047 size - Size of array.
1048 length - Length of vector.
1049 ndims - Number of dimensions.
1050 numel - Number of elements.
1051 disp - Display matrix or text.
1052 isempty - True for empty array.
1053 isequal - True if arrays are numerically equal.
1054 isequalwithequalnans - True if arrays are numerically equal.
1055
1056 Matrix manipulation.
1057 cat - Concatenate arrays.
1058 reshape - Change size.
1059 diag - Diagonal matrices and diagonals of matrix.
1060 blkdiag - Block diagonal concatenation.
1061 tril - Extract lower triangular part.
1062 triu - Extract upper triangular part.
1063 fliplr - Flip matrix in left/right direction.
1064 flipud - Flip matrix in up/down direction.
1065 flipdim - Flip matrix along specified dimension.
1066 rot90 - Rotate matrix 90 degrees.
1067 : - Regularly spaced vector and index into matrix.
1068 find - Find indices of nonzero elements.
1069 end - Last index.
1070 sub2ind - Linear index from multiple subscripts.
1071 ind2sub - Multiple subscripts from linear index.
1072 bsxfun - Binary singleton expansion function.
1073
1074 Multi-dimensional array functions.
1075 ndgrid - Generate arrays for N-D functions and interpolation.
1076 permute - Permute array dimensions.
1077 ipermute - Inverse permute array dimensions.
1078 shiftdim - Shift dimensions.
1079 circshift - Shift array circularly.
1080 squeeze - Remove singleton dimensions.
1081
1082 Array utility functions.
1083 isscalar - True for scalar.
1084 isvector - True for vector.
1085
1086 Special variables and constants.
1087 ans - Most recent answer.
1088 eps - Floating point relative accuracy.
1089 realmax - Largest positive floating point number.
1090 realmin - Smallest positive floating point number.
1091 pi - 3.1415926535897....
1092 i - Imaginary unit.
1093 inf - Infinity.
1094 nan - Not-a-Number.
1095 isnan - True for Not-a-Number.
1096 isinf - True for infinite elements.
1097 isfinite - True for finite elements.
1098 j - Imaginary unit.
1099 why - Succinct answer.
1100
1101 Specialized matrices.
1102 compan - Companion matrix.
1103 gallery - Higham test matrices.
1104 hadamard - Hadamard matrix.
1105 hankel - Hankel matrix.
1106 hilb - Hilbert matrix.
1107 invhilb - Inverse Hilbert matrix.
1108 magic - Magic square.
1109 pascal - Pascal matrix.
1110 rosser - Classic symmetric eigenvalue test problem.
1111 toeplitz - Toeplitz matrix.
1112 vander - Vandermonde matrix.
1113 wilkinson - Wilkinson's eigenvalue test matrix.
1114
1115 A
1116
1117 A =
1118
1119 8 1 6
1120 3 5 7
1121 4 9 2
1122
1123 A > 5
1124
1125 ans =
1126
1127 1 0 1
1128 0 0 1
1129 0 1 0
1130
1131 A(ans)
1132
1133 ans =
1134
1135 8
1136 9
1137 6
1138 7
1139
1140 A(ans) = 1000;
1141 A
1142
1143 A =
1144
1145 8 1 1000
1146 3 5 1000
1147 4 1000 1000
1148
1149 A
1150
1151 A =
1152
1153 8 1 1000
1154 3 5 1000
1155 4 1000 1000
1156
1157 A = magic(4):
1158 ??? A = magic(4):
1159 |
1160 Error: Expression or statement is incomplete or incorrect.
1161
1162 A = magic(4);
1163 a
1164
1165 a =
1166
1167 Columns 1 through 7
1168
1169 0.8147 0.9058 0.1270 0.9134 0.6324 0.0975 0.2785
1170
1171 Columns 8 through 10
1172
1173 0.5469 0.9575 0.9649
1174
1175 A
1176
1177 A =
1178
1179 16 2 3 13
1180 5 11 10 8
1181 9 7 6 12
1182 4 14 15 1
1183
1184 A > 5
1185
1186 ans =
1187
1188 1 0 0 1
1189 0 1 1 1
1190 1 1 1 1
1191 0 1 1 0
1192
1193 find(A > 5)
1194
1195 ans =
1196
1197 1
1198 3
1199 6
1200 7
1201 8
1202 10
1203 11
1204 12
1205 13
1206 14
1207 15
1208
1209 A(find(A > 5)) = 1000;
1210 A
1211
1212 A =
1213
1214 1000 2 3 1000
1215 5 1000 1000 1000
1216 1000 1000 1000 1000
1217 4 1000 1000 1
1218
1219
1220 magic(5)
1221
1222 ans =
1223
1224 17 24 1 8 15
1225 23 5 7 14 16
1226 4 6 13 20 22
1227 10 12 19 21 3
1228 11 18 25 2 9
1229
1230 eye(2)
1231
1232 ans =
1233
1234 1 0
1235 0 1
1236
1237 eye(5)
1238
1239 ans =
1240
1241 1 0 0 0 0
1242 0 1 0 0 0
1243 0 0 1 0 0
1244 0 0 0 1 0
1245 0 0 0 0 1
1246
1247 zeros(1, 10)
1248
1249 ans =
1250
1251 0 0 0 0 0 0 0 0 0 0
1252
1253 zeros(1, 10)'
1254
1255 ans =
1256
1257 0
1258 0
1259 0
1260 0
1261 0
1262 0
1263 0
1264 0
1265 0
1266 0
1267
1268 ones(4, 4)
1269
1270 ans =
1271
1272 1 1 1 1
1273 1 1 1 1
1274 1 1 1 1
1275 1 1 1 1
1276
1277 rand(3, 3)
1278
1279 ans =
1280
1281 0.9595 0.8491 0.7577
1282 0.6557 0.9340 0.7431
1283 0.0357 0.6787 0.3922
1284
1285 randn(3, 3)
1286
1287 ans =
1288
1289 -0.4326 0.2877 1.1892
1290 -1.6656 -1.1465 -0.0376
1291 0.1253 1.1909 0.3273
1292
1293 help randn
1294 RANDN Normally distributed random numbers.
1295 R = RANDN(N) returns an N-by-N matrix containing pseudo-random values
1296 drawn from a normal distribution with mean zero and standard deviation
1297 one. RANDN(M,N) or RANDN([M,N]) returns an M-by-N matrix. RANDN(M,N,P,...)
1298 or RANDN([M,N,P,...]) returns an M-by-N-by-P-by-... array. RANDN with
1299 no arguments returns a scalar. RANDN(SIZE(A)) returns an array the
1300 same size as A.
1301
1302 You can use one of two generator algorithms, as follows:
1303
1304 RANDN(METHOD,S) causes RANDN to use the generator determined by METHOD, and
1305 initializes the state of that generator. S is a scalar integer value from
1306 0 to 2^32-1, or the output of RANDN(METHOD). METHOD is one of the
1307 following strings:
1308
1309 'state' - Use Marsaglia's Ziggurat algorithm, the default in MATLAB
1310 Versions 5 and later. The period is approximately 2^64.
1311
1312 'seed' - Use the polar algorithm, the default in MATLAB Version 4.
1313 The period is approximately (2^31-1)*(pi/8).
1314
1315 RANDN(METHOD) returns the current internal state of the generator
1316 determined by METHOD. However, it does not switch generators.
1317
1318 The sequence of numbers produced by RANDN is determined by the internal
1319 state of the generator. Setting the generator to the same fixed state
1320 allows computations to be repeated. Setting the generator to different
1321 states leads to unique computations, however, it does not improve any
1322 statistical properties. Since MATLAB resets the state at start-up, RANDN
1323 will generate the same sequence of numbers in each session unless the
1324 state is changed.
1325
1326 Note: The size inputs M, N, and P... should be nonnegative integers.
1327 Negative integers are treated as 0.
1328
1329 Examples:
1330
1331 Return RANDN to its default initial state.
1332 randn('state',0)
1333
1334 Initialize RANDN to a different state each time.
1335 randn('state',sum(100*clock))
1336
1337 Save the current state, generate 100 values, reset the state,
1338 and repeat the sequence.
1339 s = randn('state');
1340 r1 = randn(100);
1341 randn('state',s);
1342 r2 = randn(100); % contains exactly the same values as r1
1343
1344 Generate normal values with mean 1 and standard deviation 2.
1345 r = 1 + 2.*randn(100,1);
1346
1347 See also RAND, SPRAND, SPRANDN, RANDPERM.
1348
1349 help elmat
1350 Elementary matrices and matrix manipulation.
1351
1352 Elementary matrices.
1353 zeros - Zeros array.
1354 ones - Ones array.
1355 eye - Identity matrix.
1356 repmat - Replicate and tile array.
1357 rand - Uniformly distributed random numbers.
1358 randn - Normally distributed random numbers.
1359 linspace - Linearly spaced vector.
1360 logspace - Logarithmically spaced vector.
1361 freqspace - Frequency spacing for frequency response.
1362 meshgrid - X and Y arrays for 3-D plots.
1363 accumarray - Construct an array with accumulation.
1364 : - Regularly spaced vector and index into matrix.
1365
1366 Basic array information.
1367 size - Size of array.
1368 length - Length of vector.
1369 ndims - Number of dimensions.
1370 numel - Number of elements.
1371 disp - Display matrix or text.
1372 isempty - True for empty array.
1373 isequal - True if arrays are numerically equal.
1374 isequalwithequalnans - True if arrays are numerically equal.
1375
1376 Matrix manipulation.
1377 cat - Concatenate arrays.
1378 reshape - Change size.
1379 diag - Diagonal matrices and diagonals of matrix.
1380 blkdiag - Block diagonal concatenation.
1381 tril - Extract lower triangular part.
1382 triu - Extract upper triangular part.
1383 fliplr - Flip matrix in left/right direction.
1384 flipud - Flip matrix in up/down direction.
1385 flipdim - Flip matrix along specified dimension.
1386 rot90 - Rotate matrix 90 degrees.
1387 : - Regularly spaced vector and index into matrix.
1388 find - Find indices of nonzero elements.
1389 end - Last index.
1390 sub2ind - Linear index from multiple subscripts.
1391 ind2sub - Multiple subscripts from linear index.
1392 bsxfun - Binary singleton expansion function.
1393
1394 Multi-dimensional array functions.
1395 ndgrid - Generate arrays for N-D functions and interpolation.
1396 permute - Permute array dimensions.
1397 ipermute - Inverse permute array dimensions.
1398 shiftdim - Shift dimensions.
1399 circshift - Shift array circularly.
1400 squeeze - Remove singleton dimensions.
1401
1402 Array utility functions.
1403 isscalar - True for scalar.
1404 isvector - True for vector.
1405
1406 Special variables and constants.
1407 ans - Most recent answer.
1408 eps - Floating point relative accuracy.
1409 realmax - Largest positive floating point number.
1410 realmin - Smallest positive floating point number.
1411 pi - 3.1415926535897....
1412 i - Imaginary unit.
1413 inf - Infinity.
1414 nan - Not-a-Number.
1415 isnan - True for Not-a-Number.
1416 isinf - True for infinite elements.
1417 isfinite - True for finite elements.
1418 j - Imaginary unit.
1419 why - Succinct answer.
1420
1421 Specialized matrices.
1422 compan - Companion matrix.
1423 gallery - Higham test matrices.
1424 hadamard - Hadamard matrix.
1425 hankel - Hankel matrix.
1426 hilb - Hilbert matrix.
1427 invhilb - Inverse Hilbert matrix.
1428 magic - Magic square.
1429 pascal - Pascal matrix.
1430 rosser - Classic symmetric eigenvalue test problem.
1431 toeplitz - Toeplitz matrix.
1432 vander - Vandermonde matrix.
1433 wilkinson - Wilkinson's eigenvalue test matrix.
1434
1435 help stat
1436
1437 stat.m not found.
1438
1439 help stats
1440 Statistics Toolbox
1441 Version 6.0 (R2007a) 01-Feb-2007
1442
1443 Distributions.
1444 Parameter estimation.
1445 betafit - Beta parameter estimation.
1446 binofit - Binomial parameter estimation.
1447 dfittool - Distribution fitting tool.
1448 evfit - Extreme value parameter estimation.
1449 expfit - Exponential parameter estimation.
1450 gamfit - Gamma parameter estimation.
1451 gevfit - Generalized extreme value parameter estimation.
1452 gpfit - Generalized Pareto parameter estimation.
1453 lognfit - Lognormal parameter estimation.
1454 mle - Maximum likelihood estimation (MLE).
1455 mlecov - Asymptotic covariance matrix of MLE.
1456 nbinfit - Negative binomial parameter estimation.
1457 normfit - Normal parameter estimation.
1458 paretotails - Empirical cdf with generalized Pareto tails.
1459 poissfit - Poisson parameter estimation.
1460 raylfit - Rayleigh parameter estimation.
1461 unifit - Uniform parameter estimation.
1462 wblfit - Weibull parameter estimation.
1463
1464 Probability density functions (pdf).
1465 betapdf - Beta density.
1466 binopdf - Binomial density.
1467 chi2pdf - Chi square density.
1468 evpdf - Extreme value density.
1469 exppdf - Exponential density.
1470 fpdf - F density.
1471 gampdf - Gamma density.
1472 geopdf - Geometric density.
1473 gevpdf - Generalized extreme value density.
1474 gppdf - Generalized Pareto density.
1475 hygepdf - Hypergeometric density.
1476 lognpdf - Lognormal density.
1477 mnpdf - Multinomial probability density function.
1478 mvnpdf - Multivariate normal density.
1479 mvtpdf - Multivariate t density.
1480 nbinpdf - Negative binomial density.
1481 ncfpdf - Noncentral F density.
1482 nctpdf - Noncentral t density.
1483 ncx2pdf - Noncentral Chi-square density.
1484 normpdf - Normal (Gaussian) density.
1485 pdf - Density function for a specified distribution.
1486 poisspdf - Poisson density.
1487 raylpdf - Rayleigh density.
1488 tpdf - T density.
1489 unidpdf - Discrete uniform density.
1490 unifpdf - Uniform density.
1491 wblpdf - Weibull density.
1492
1493 Cumulative Distribution functions (cdf).
1494 betacdf - Beta cumulative distribution function.
1495 binocdf - Binomial cumulative distribution function.
1496 cdf - Specified cumulative distribution function.
1497 chi2cdf - Chi square cumulative distribution function.
1498 ecdf - Empirical cumulative distribution function (Kaplan-Meier estimate).
1499 evcdf - Extreme value cumulative distribution function.
1500 expcdf - Exponential cumulative distribution function.
1501 fcdf - F cumulative distribution function.
1502 gamcdf - Gamma cumulative distribution function.
1503 geocdf - Geometric cumulative distribution function.
1504 gevcdf - Generalized extreme value cumulative distribution function.
1505 gpcdf - Generalized Pareto cumulative distribution function.
1506 hygecdf - Hypergeometric cumulative distribution function.
1507 logncdf - Lognormal cumulative distribution function.
1508 mvncdf - Multivariate normal cumulative distribution function.
1509 mvtcdf - Multivariate t cumulative distribution function.
1510 nbincdf - Negative binomial cumulative distribution function.
1511 ncfcdf - Noncentral F cumulative distribution function.
1512 nctcdf - Noncentral t cumulative distribution function.
1513 ncx2cdf - Noncentral Chi-square cumulative distribution function.
1514 normcdf - Normal (Gaussian) cumulative distribution function.
1515 poisscdf - Poisson cumulative distribution function.
1516 raylcdf - Rayleigh cumulative distribution function.
1517 tcdf - T cumulative distribution function.
1518 unidcdf - Discrete uniform cumulative distribution function.
1519 unifcdf - Uniform cumulative distribution function.
1520 wblcdf - Weibull cumulative distribution function.
1521
1522 Critical Values of Distribution functions.
1523 betainv - Beta inverse cumulative distribution function.
1524 binoinv - Binomial inverse cumulative distribution function.
1525 chi2inv - Chi square inverse cumulative distribution function.
1526 evinv - Extreme value inverse cumulative distribution function.
1527 expinv - Exponential inverse cumulative distribution function.
1528 finv - F inverse cumulative distribution function.
1529 gaminv - Gamma inverse cumulative distribution function.
1530 geoinv - Geometric inverse cumulative distribution function.
1531 gevinv - Generalized extreme value inverse cumulative distribution function.
1532 gpinv - Generalized Pareto inverse cumulative distribution function.
1533 hygeinv - Hypergeometric inverse cumulative distribution function.
1534 icdf - Specified inverse cumulative distribution function.
1535 logninv - Lognormal inverse cumulative distribution function.
1536 nbininv - Negative binomial inverse distribution function.
1537 ncfinv - Noncentral F inverse cumulative distribution function.
1538 nctinv - Noncentral t inverse cumulative distribution function.
1539 ncx2inv - Noncentral Chi-square inverse distribution function.
1540 norminv - Normal (Gaussian) inverse cumulative distribution function.
1541 poissinv - Poisson inverse cumulative distribution function.
1542 raylinv - Rayleigh inverse cumulative distribution function.
1543 tinv - T inverse cumulative distribution function.
1544 unidinv - Discrete uniform inverse cumulative distribution function.
1545 unifinv - Uniform inverse cumulative distribution function.
1546 wblinv - Weibull inverse cumulative distribution function.
1547
1548 Random Number Generators.
1549 betarnd - Beta random numbers.
1550 binornd - Binomial random numbers.
1551 chi2rnd - Chi square random numbers.
1552 evrnd - Extreme value random numbers.
1553 exprnd - Exponential random numbers.
1554 frnd - F random numbers.
1555 gamrnd - Gamma random numbers.
1556 geornd - Geometric random numbers.
1557 gevrnd - Generalized extreme value random numbers.
1558 gprnd - Generalized Pareto inverse random numbers.
1559 hygernd - Hypergeometric random numbers.
1560 iwishrnd - Inverse Wishart random matrix.
1561 johnsrnd - Random numbers from the Johnson system of distributions.
1562 lognrnd - Lognormal random numbers.
1563 mhsample - Metropolis-Hastings algorithm.
1564 mnrnd - Multinomial random vectors.
1565 mvnrnd - Multivariate normal random vectors.
1566 mvtrnd - Multivariate t random vectors.
1567 nbinrnd - Negative binomial random numbers.
1568 ncfrnd - Noncentral F random numbers.
1569 nctrnd - Noncentral t random numbers.
1570 ncx2rnd - Noncentral Chi-square random numbers.
1571 normrnd - Normal (Gaussian) random numbers.
1572 pearsrnd - Random numbers from the Pearson system of distributions.
1573 poissrnd - Poisson random numbers.
1574 randg - Gamma random numbers (unit scale).
1575 random - Random numbers from specified distribution.
1576 randsample - Random sample from finite population.
1577 raylrnd - Rayleigh random numbers.
1578 slicesample - Slice sampling method.
1579 trnd - T random numbers.
1580 unidrnd - Discrete uniform random numbers.
1581 unifrnd - Uniform random numbers.
1582 wblrnd - Weibull random numbers.
1583 wishrnd - Wishart random matrix.
1584
1585 Statistics.
1586 betastat - Beta mean and variance.
1587 binostat - Binomial mean and variance.
1588 chi2stat - Chi square mean and variance.
1589 evstat - Extreme value mean and variance.
1590 expstat - Exponential mean and variance.
1591 fstat - F mean and variance.
1592 gamstat - Gamma mean and variance.
1593 geostat - Geometric mean and variance.
1594 gevstat - Generalized extreme value mean and variance.
1595 gpstat - Generalized Pareto inverse mean and variance.
1596 hygestat - Hypergeometric mean and variance.
1597 lognstat - Lognormal mean and variance.
1598 nbinstat - Negative binomial mean and variance.
1599 ncfstat - Noncentral F mean and variance.
1600 nctstat - Noncentral t mean and variance.
1601 ncx2stat - Noncentral Chi-square mean and variance.
1602 normstat - Normal (Gaussian) mean and variance.
1603 poisstat - Poisson mean and variance.
1604 raylstat - Rayleigh mean and variance.
1605 tstat - T mean and variance.
1606 unidstat - Discrete uniform mean and variance.
1607 unifstat - Uniform mean and variance.
1608 wblstat - Weibull mean and variance.
1609
1610 Likelihood functions.
1611 betalike - Negative beta log-likelihood.
1612 evlike - Negative extreme value log-likelihood.
1613 explike - Negative exponential log-likelihood.
1614 gamlike - Negative gamma log-likelihood.
1615 gevlike - Generalized extreme value log-likelihood.
1616 gplike - Generalized Pareto inverse log-likelihood.
1617 lognlike - Negative lognormal log-likelihood.
1618 nbinlike - Negative binomial log-likelihood.
1619 normlike - Negative normal likelihood.
1620 wbllike - Negative Weibull log-likelihood.
1621
1622 Descriptive Statistics.
1623 bootci - Bootstrap confidence intervals.
1624 bootstrp - Bootstrap statistics.
1625 corr - Linear or rank correlation coefficient.
1626 corrcoef - Linear correlation coefficient (in MATLAB toolbox).
1627 cov - Covariance (in MATLAB toolbox).
1628 crosstab - Cross tabulation.
1629 geomean - Geometric mean.
1630 grpstats - Summary statistics by group.
1631 harmmean - Harmonic mean.
1632 iqr - Interquartile range.
1633 jackknife - Jackknife statistics.
1634 kurtosis - Kurtosis.
1635 mad - Median Absolute Deviation.
1636 mean - Sample average (in MATLAB toolbox).
1637 median - 50th percentile of a sample (in MATLAB toolbox).
1638 moment - Moments of a sample.
1639 nancov - Covariance matrix ignoring NaNs.
1640 nanmax - Maximum ignoring NaNs.
1641 nanmean - Mean ignoring NaNs.
1642 nanmedian - Median ignoring NaNs.
1643 nanmin - Minimum ignoring NaNs.
1644 nanstd - Standard deviation ignoring NaNs.
1645 nansum - Sum ignoring NaNs.
1646 nanvar - Variance ignoring NaNs.
1647 partialcorr - Linear or rank partial correlation coefficient.
1648 prctile - Percentiles.
1649 quantile - Quantiles.
1650 range - Range.
1651 skewness - Skewness.
1652 std - Standard deviation (in MATLAB toolbox).
1653 tabulate - Frequency table.
1654 trimmean - Trimmed mean.
1655 var - Variance (in MATLAB toolbox).
1656
1657 Linear Models.
1658 addedvarplot - Created added-variable plot for stepwise regression.
1659 anova1 - One-way analysis of variance.
1660 anova2 - Two-way analysis of variance.
1661 anovan - n-way analysis of variance.
1662 aoctool - Interactive tool for analysis of covariance.
1663 dummyvar - Dummy-variable coding.
1664 friedman - Friedman's test (nonparametric two-way anova).
1665 glmfit - Generalized linear model fitting.
1666 glmval - Evaluate fitted values for generalized linear model.
1667 invpred - Inverse prediction for simple linear regression.
1668 kruskalwallis - Kruskal-Wallis test (nonparametric one-way anova).
1669 leverage - Regression diagnostic.
1670 lscov - Ordinary, weighted, or generalized least-squares (in MATLAB toolbox).
1671 lsqnonneg - Non-negative least-squares (in MATLAB toolbox).
1672 manova1 - One-way multivariate analysis of variance.
1673 manovacluster - Draw clusters of group means for manova1.
1674 mnrfit - Nominal or ordinal multinomial regression model fitting.
1675 mnrval - Predict values for nominal or ordinal multinomial regression.
1676 multcompare - Multiple comparisons of means and other estimates.
1677 mvregress - Multivariate regression with missing data.
1678 mvregresslike - Negative log-likelihood for multivariate regression.
1679 polyconf - Polynomial evaluation and confidence interval estimation.
1680 polyfit - Least-squares polynomial fitting (in MATLAB toolbox).
1681 polyval - Predicted values for polynomial functions (in MATLAB toolbox).
1682 rcoplot - Residuals case order plot.
1683 regress - Multiple linear regression using least squares.
1684 regstats - Regression diagnostics.
1685 ridge - Ridge regression.
1686 robustfit - Robust regression model fitting.
1687 rstool - Multidimensional response surface visualization (RSM).
1688 stepwise - Interactive tool for stepwise regression.
1689 stepwisefit - Non-interactive stepwise regression.
1690 x2fx - Factor settings matrix (x) to design matrix (fx).
1691
1692 Nonlinear Models.
1693 coxphfit - Cox proportional hazards regression.
1694 nlinfit - Nonlinear least-squares data fitting.
1695 nlintool - Interactive graphical tool for prediction in nonlinear models.
1696 nlpredci - Confidence intervals for prediction.
1697 nlparci - Confidence intervals for parameters.
1698
1699 Design of Experiments (DOE).
1700 bbdesign - Box-Behnken design.
1701 candexch - D-optimal design (row exchange algorithm for candidate set).
1702 candgen - Candidates set for D-optimal design generation.
1703 ccdesign - Central composite design.
1704 cordexch - D-optimal design (coordinate exchange algorithm).
1705 daugment - Augment D-optimal design.
1706 dcovary - D-optimal design with fixed covariates.
1707 fracfactgen - Fractional factorial design generators.
1708 ff2n - Two-level full-factorial design.
1709 fracfact - Two-level fractional factorial design.
1710 fullfact - Mixed-level full-factorial design.
1711 hadamard - Hadamard matrices (orthogonal arrays) (in MATLAB toolbox).
1712 lhsdesign - Latin hypercube sampling design.
1713 lhsnorm - Latin hypercube multivariate normal sample.
1714 rowexch - D-optimal design (row exchange algorithm).
1715
1716 Statistical Process Control (SPC).
1717 capability - Capability indices.
1718 capaplot - Capability plot.
1719 controlchart - Shewhart control chart.
1720 controlrules - Control rules (Western Electric or Nelson) for SPC data.
1721 gagerr - Gage repeatability and reproducibility (R&R) study.
1722 histfit - Histogram with superimposed normal density.
1723 normspec - Plot normal density between specification limits.
1724 runstest - Runs test for randomness.
1725
1726 Multivariate Statistics.
1727 Cluster Analysis.
1728 cophenet - Cophenetic coefficient.
1729 cluster - Construct clusters from LINKAGE output.
1730 clusterdata - Construct clusters from data.
1731 dendrogram - Generate dendrogram plot.
1732 inconsistent - Inconsistent values of a cluster tree.
1733 kmeans - k-means clustering.
1734 linkage - Hierarchical cluster information.
1735 pdist - Pairwise distance between observations.
1736 silhouette - Silhouette plot of clustered data.
1737 squareform - Square matrix formatted distance.
1738
1739 Dimension Reduction Techniques.
1740 factoran - Factor analysis.
1741 pcacov - Principal components from covariance matrix.
1742 pcares - Residuals from principal components.
1743 princomp - Principal components analysis from raw data.
1744 rotatefactors - Rotation of FA or PCA loadings.
1745
1746 Copulas
1747 copulacdf - Cumulative probability function for a copula.
1748 copulaparam - Copula parameters as a function of rank correlation.
1749 copulapdf - Probability density function for a copula.
1750 copularnd - Random vectors from a copula.
1751 copulastat - Rank correlation for a copula.
1752
1753 Plotting.
1754 andrewsplot - Andrews plot for multivariate data.
1755 biplot - Biplot of variable/factor coefficients and scores.
1756 interactionplot - Interaction plot for factor effects.
1757 maineffectsplot - Main effects plot for factor effects.
1758 glyphplot - Plot stars or Chernoff faces for multivariate data.
1759 gplotmatrix - Matrix of scatter plots grouped by a common variable.
1760 multivarichart - Multi-vari chart of factor effects.
1761 parallelcoords - Parallel coordinates plot for multivariate data.
1762
1763 Other Multivariate Methods.
1764 barttest - Bartlett's test for dimensionality.
1765 canoncorr - Canonical correlation analysis.
1766 cmdscale - Classical multidimensional scaling.
1767 classify - Linear discriminant analysis.
1768 mahal - Mahalanobis distance.
1769 manova1 - One-way multivariate analysis of variance.
1770 mdscale - Metric and non-metric multidimensional scaling.
1771 mvregress - Multivariate regression with missing data.
1772 procrustes - Procrustes analysis.
1773
1774 Decision Tree Techniques.
1775 treedisp - Display decision tree.
1776 treefit - Fit data using a classification or regression tree.
1777 treeprune - Prune decision tree or creating optimal pruning sequence.
1778 treetest - Estimate error for decision tree.
1779 treeval - Compute fitted values using decision tree.
1780
1781 Hypothesis Tests.
1782 ansaribradley - Ansari-Bradley two-sample test for equal dispersions.
1783 dwtest - Durbin-Watson test for autocorrelation in linear regression.
1784 linhyptest - Linear hypothesis test on parameter estimates.
1785 ranksum - Wilcoxon rank sum test (independent samples).
1786 runstest - Runs test for randomness.
1787 sampsizepwr - Sample size and power calculation for hypothesis test.
1788 signrank - Wilcoxon sign rank test (paired samples).
1789 signtest - Sign test (paired samples).
1790 ttest - One sample t test.
1791 ttest2 - Two sample t test.
1792 vartest - One-sample test of variance.
1793 vartest2 - Two-sample F test for equal variances.
1794 vartestn - Test for equal variances across multiple groups.
1795 ztest - Z test.
1796
1797 Distribution Testing.
1798 chi2gof - Chi-square goodness-of-fit test.
1799 jbtest - Jarque-Bera test of normality.
1800 kstest - Kolmogorov-Smirnov test for one sample.
1801 kstest2 - Kolmogorov-Smirnov test for two samples.
1802 lillietest - Lilliefors test of normality.
1803
1804 Nonparametric Functions.
1805 friedman - Friedman's test (nonparametric two-way anova).
1806 kruskalwallis - Kruskal-Wallis test (nonparametric one-way anova).
1807 ksdensity - Kernel smoothing density estimation.
1808 ranksum - Wilcoxon rank sum test (independent samples).
1809 signrank - Wilcoxon sign rank test (paired samples).
1810 signtest - Sign test (paired samples).
1811
1812 Hidden Markov Models.
1813 hmmdecode - Calculate HMM posterior state probabilities.
1814 hmmestimate - Estimate HMM parameters given state information.
1815 hmmgenerate - Generate random sequence for HMM.
1816 hmmtrain - Calculate maximum likelihood estimates for HMM parameters.
1817 hmmviterbi - Calculate most probable state path for HMM sequence.
1818
1819 Statistical Plotting.
1820 andrewsplot - Andrews plot for multivariate data.
1821 biplot - Biplot of variable/factor coefficients and scores.
1822 boxplot - Boxplots of a data matrix (one per column).
1823 cdfplot - Plot of empirical cumulative distribution function.
1824 ecdf - Empirical cdf (Kaplan-Meier estimate).
1825 ecdfhist - Histogram calculated from empirical cdf.
1826 fsurfht - Interactive contour plot of a function.
1827 gline - Point, drag and click line drawing on figures.
1828 glyphplot - Plot stars or Chernoff faces for multivariate data.
1829 gname - Interactive point labeling in x-y plots.
1830 gplotmatrix - Matrix of scatter plots grouped by a common variable.
1831 gscatter - Scatter plot of two variables grouped by a third.
1832 hist - Histogram (in MATLAB toolbox).
1833 hist3 - Three-dimensional histogram of bivariate data.
1834 ksdensity - Kernel smoothing density estimation.
1835 lsline - Add least-square fit line to scatter plot.
1836 normplot - Normal probability plot.
1837 parallelcoords - Parallel coordinates plot for multivariate data.
1838 probplot - Probability plot.
1839 qqplot - Quantile-Quantile plot.
1840 refcurve - Reference polynomial curve.
1841 refline - Reference line.
1842 scatterhist - 2D scatter plot with marginal histograms.
1843 surfht - Interactive contour plot of a data grid.
1844 wblplot - Weibull probability plot.
1845
1846 Data Objects
1847 dataset - Create datasets from workspace variables or files.
1848 nominal - Create arrays of nominal data.
1849 ordinal - Create arrays of ordinal data.
1850
1851 Statistics Demos.
1852 aoctool - Interactive tool for analysis of covariance.
1853 disttool - GUI tool for exploring probability distribution functions.
1854 polytool - Interactive graph for prediction of fitted polynomials.
1855 randtool - GUI tool for generating random numbers.
1856 rsmdemo - Reaction simulation (DOE, RSM, nonlinear curve fitting).
1857 robustdemo - Interactive tool to compare robust and least squares fits.
1858
1859 File Based I/O.
1860 tblread - Read in data in tabular format.
1861 tblwrite - Write out data in tabular format to file.
1862 tdfread - Read in text and numeric data from tab-delimited file.
1863 caseread - Read in case names.
1864 casewrite - Write out case names to file.
1865
1866 Utility Functions.
1867 cholcov - Cholesky-like decomposition for covariance matrix.
1868 combnk - Enumeration of all combinations of n objects k at a time.
1869 grp2idx - Convert grouping variable to indices and array of names.
1870 hougen - Prediction function for Hougen model (nonlinear example).
1871 statget - Get STATS options parameter value.
1872 statset - Set STATS options parameter value.
1873 tiedrank - Compute ranks of sample, adjusting for ties.
1874 zscore - Normalize matrix columns to mean 0, variance 1.
1875
1876 pwd
1877
1878 ans =
1879
1880 /home/ml/buenau
1881
1882 getpath
1883 ??? Undefined function or variable 'getpath'.
1884
1885 path
1886
1887 MATLABPATH
1888
1889 /home/ml/ml/matlab/toolbox/matlab/general
1890 /home/ml/ml/matlab/toolbox/matlab/ops
1891 /home/ml/ml/matlab/toolbox/matlab/lang
1892 /home/ml/ml/matlab/toolbox/matlab/elmat
1893 /home/ml/ml/matlab/toolbox/matlab/elfun
1894 /home/ml/ml/matlab/toolbox/matlab/specfun
1895 /home/ml/ml/matlab/toolbox/matlab/matfun
1896 /home/ml/ml/matlab/toolbox/matlab/datafun
1897 /home/ml/ml/matlab/toolbox/matlab/polyfun
1898 /home/ml/ml/matlab/toolbox/matlab/funfun
1899 /home/ml/ml/matlab/toolbox/matlab/sparfun
1900 /home/ml/ml/matlab/toolbox/matlab/scribe
1901 /home/ml/ml/matlab/toolbox/matlab/graph2d
1902 /home/ml/ml/matlab/toolbox/matlab/graph3d
1903 /home/ml/ml/matlab/toolbox/matlab/specgraph
1904 /home/ml/ml/matlab/toolbox/matlab/graphics
1905 /home/ml/ml/matlab/toolbox/matlab/uitools
1906 /home/ml/ml/matlab/toolbox/matlab/strfun
1907 /home/ml/ml/matlab/toolbox/matlab/imagesci
1908 /home/ml/ml/matlab/toolbox/matlab/iofun
1909 /home/ml/ml/matlab/toolbox/matlab/audiovideo
1910 /home/ml/ml/matlab/toolbox/matlab/timefun
1911 /home/ml/ml/matlab/toolbox/matlab/datatypes
1912 /home/ml/ml/matlab/toolbox/matlab/verctrl
1913 /home/ml/ml/matlab/toolbox/matlab/codetools
1914 /home/ml/ml/matlab/toolbox/matlab/helptools
1915 /home/ml/ml/matlab/toolbox/matlab/demos
1916 /home/ml/ml/matlab/toolbox/matlab/timeseries
1917 /home/ml/ml/matlab/toolbox/matlab/hds
1918 /home/ml/ml/matlab/toolbox/matlab/guide
1919 /home/ml/ml/matlab/toolbox/matlab/plottools
1920 /home/ml/ml/matlab/toolbox/local
1921 /home/ml/ml/matlab/toolbox/shared/controllib
1922 /home/ml/ml/matlab/toolbox/simulink/simulink
1923 /home/ml/ml/matlab/toolbox/simulink/blocks
1924 /home/ml/ml/matlab/toolbox/simulink/components
1925 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat
1926 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat/fxpdemos
1927 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat/obsolete
1928 /home/ml/ml/matlab/toolbox/simulink/simdemos
1929 /home/ml/ml/matlab/toolbox/simulink/simdemos/aerospace
1930 /home/ml/ml/matlab/toolbox/simulink/simdemos/automotive
1931 /home/ml/ml/matlab/toolbox/simulink/simdemos/simfeatures
1932 /home/ml/ml/matlab/toolbox/simulink/simdemos/simgeneral
1933 /home/ml/ml/matlab/toolbox/simulink/dee
1934 /home/ml/ml/matlab/toolbox/shared/dastudio
1935 /home/ml/ml/matlab/toolbox/shared/glue
1936 /home/ml/ml/matlab/toolbox/stateflow/stateflow
1937 /home/ml/ml/matlab/toolbox/rtw/rtw
1938 /home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor
1939 /home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor/fixpt
1940 /home/ml/ml/matlab/toolbox/simulink/simulink/MPlayIO
1941 /home/ml/ml/matlab/toolbox/simulink/simulink/dataobjectwizard
1942 /home/ml/ml/matlab/toolbox/shared/fixedpointlib
1943 /home/ml/ml/matlab/toolbox/simulink/dataimportexport
1944 /home/ml/ml/matlab/toolbox/shared/hdlshared
1945 /home/ml/ml/matlab/toolbox/stateflow/sfdemos
1946 /home/ml/ml/matlab/toolbox/stateflow/coder
1947 /home/ml/ml/matlab/toolbox/eml/eml
1948 /home/ml/ml/matlab/toolbox/emlcoder/emlcoder
1949 /home/ml/ml/matlab/toolbox/emlcoder/emlcodermex
1950 /home/ml/ml/matlab/toolbox/fixedpoint/fixedpoint
1951 /home/ml/ml/matlab/toolbox/fixedpoint/fidemos
1952 /home/ml/ml/matlab/toolbox/images/images
1953 /home/ml/ml/matlab/toolbox/images/imuitools
1954 /home/ml/ml/matlab/toolbox/images/imdemos
1955 /home/ml/ml/matlab/toolbox/images/iptutils
1956 /home/ml/ml/matlab/toolbox/shared/imageslib
1957 /home/ml/ml/matlab/toolbox/images/medformats
1958 /home/ml/ml/matlab/toolbox/slvnv/simcoverage
1959 /home/ml/ml/matlab/toolbox/optim/optim
1960 /home/ml/ml/matlab/toolbox/optim/optimdemos
1961 /home/ml/ml/matlab/toolbox/shared/optimlib
1962 /home/ml/ml/matlab/toolbox/signal/signal
1963 /home/ml/ml/matlab/toolbox/signal/sigtools
1964 /home/ml/ml/matlab/toolbox/signal/sptoolgui
1965 /home/ml/ml/matlab/toolbox/signal/sigdemos
1966 /home/ml/ml/matlab/toolbox/shared/spcuilib
1967 /home/ml/ml/matlab/toolbox/stats
1968 /home/ml/ml/matlab/toolbox/vr/vr
1969 /home/ml/ml/matlab/toolbox/vr/vrdemos
1970 /home/ml/ml/matlab/work
1971 addpath
1972 ??? Error using ==> addpath at 35
1973 Not enough input arguments.
1974
1975 addpath('/home/ml/buenau/irgendwas')
1976 Warning: Name is nonexistent or not a directory: /home/ml/buenau/irgendwas.
1977 > In path at 110
1978 In addpath at 89
1979 help addpath
1980 ADDPATH Add directory to search path.
1981 ADDPATH DIRNAME prepends the specified directory to the current
1982 matlabpath. Surround the DIRNAME in quotes if the name contains a
1983 space. If DIRNAME is a set of multiple directories separated by path
1984 separators, then each of the specified directories will be added.
1985
1986 ADDPATH DIR1 DIR2 DIR3 ... prepends all the specified directories to
1987 the path.
1988
1989 ADDPATH ... -END appends the specified directories.
1990 ADDPATH ... -BEGIN prepends the specified directories.
1991 ADDPATH ... -FROZEN disables directory change detection for directories
1992 being added and thereby conserves Windows change
1993 notification resources (Windows only).
1994
1995 Use the functional form of ADDPATH, such as ADDPATH('dir1','dir2',...),
1996 when the directory specification is stored in a string.
1997
1998 P = ADDPATH(...) returns the path prior to adding the specified paths.
1999
2000 Examples
2001 addpath c:\matlab\work
2002 addpath /home/user/matlab
2003 addpath /home/user/matlab:/home/user/matlab/test:
2004 addpath /home/user/matlab /home/user/matlab/test
2005
2006 See also RMPATH, PATHTOOL, PATH, SAVEPATH, GENPATH, REHASH.
2007
2008 path
2009
2010 MATLABPATH
2011
2012 /home/ml/ml/matlab/toolbox/matlab/general
2013 /home/ml/ml/matlab/toolbox/matlab/ops
2014 /home/ml/ml/matlab/toolbox/matlab/lang
2015 /home/ml/ml/matlab/toolbox/matlab/elmat
2016 /home/ml/ml/matlab/toolbox/matlab/elfun
2017 /home/ml/ml/matlab/toolbox/matlab/specfun
2018 /home/ml/ml/matlab/toolbox/matlab/matfun
2019 /home/ml/ml/matlab/toolbox/matlab/datafun
2020 /home/ml/ml/matlab/toolbox/matlab/polyfun
2021 /home/ml/ml/matlab/toolbox/matlab/funfun
2022 /home/ml/ml/matlab/toolbox/matlab/sparfun
2023 /home/ml/ml/matlab/toolbox/matlab/scribe
2024 /home/ml/ml/matlab/toolbox/matlab/graph2d
2025 /home/ml/ml/matlab/toolbox/matlab/graph3d
2026 /home/ml/ml/matlab/toolbox/matlab/specgraph
2027 /home/ml/ml/matlab/toolbox/matlab/graphics
2028 /home/ml/ml/matlab/toolbox/matlab/uitools
2029 /home/ml/ml/matlab/toolbox/matlab/strfun
2030 /home/ml/ml/matlab/toolbox/matlab/imagesci
2031 /home/ml/ml/matlab/toolbox/matlab/iofun
2032 /home/ml/ml/matlab/toolbox/matlab/audiovideo
2033 /home/ml/ml/matlab/toolbox/matlab/timefun
2034 /home/ml/ml/matlab/toolbox/matlab/datatypes
2035 /home/ml/ml/matlab/toolbox/matlab/verctrl
2036 /home/ml/ml/matlab/toolbox/matlab/codetools
2037 /home/ml/ml/matlab/toolbox/matlab/helptools
2038 /home/ml/ml/matlab/toolbox/matlab/demos
2039 /home/ml/ml/matlab/toolbox/matlab/timeseries
2040 /home/ml/ml/matlab/toolbox/matlab/hds
2041 /home/ml/ml/matlab/toolbox/matlab/guide
2042 /home/ml/ml/matlab/toolbox/matlab/plottools
2043 /home/ml/ml/matlab/toolbox/local
2044 /home/ml/ml/matlab/toolbox/shared/controllib
2045 /home/ml/ml/matlab/toolbox/simulink/simulink
2046 /home/ml/ml/matlab/toolbox/simulink/blocks
2047 /home/ml/ml/matlab/toolbox/simulink/components
2048 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat
2049 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat/fxpdemos
2050 /home/ml/ml/matlab/toolbox/simulink/fixedandfloat/obsolete
2051 /home/ml/ml/matlab/toolbox/simulink/simdemos
2052 /home/ml/ml/matlab/toolbox/simulink/simdemos/aerospace
2053 /home/ml/ml/matlab/toolbox/simulink/simdemos/automotive
2054 /home/ml/ml/matlab/toolbox/simulink/simdemos/simfeatures
2055 /home/ml/ml/matlab/toolbox/simulink/simdemos/simgeneral
2056 /home/ml/ml/matlab/toolbox/simulink/dee
2057 /home/ml/ml/matlab/toolbox/shared/dastudio
2058 /home/ml/ml/matlab/toolbox/shared/glue
2059 /home/ml/ml/matlab/toolbox/stateflow/stateflow
2060 /home/ml/ml/matlab/toolbox/rtw/rtw
2061 /home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor
2062 /home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor/fixpt
2063 /home/ml/ml/matlab/toolbox/simulink/simulink/MPlayIO
2064 /home/ml/ml/matlab/toolbox/simulink/simulink/dataobjectwizard
2065 /home/ml/ml/matlab/toolbox/shared/fixedpointlib
2066 /home/ml/ml/matlab/toolbox/simulink/dataimportexport
2067 /home/ml/ml/matlab/toolbox/shared/hdlshared
2068 /home/ml/ml/matlab/toolbox/stateflow/sfdemos
2069 /home/ml/ml/matlab/toolbox/stateflow/coder
2070 /home/ml/ml/matlab/toolbox/eml/eml
2071 /home/ml/ml/matlab/toolbox/emlcoder/emlcoder
2072 /home/ml/ml/matlab/toolbox/emlcoder/emlcodermex
2073 /home/ml/ml/matlab/toolbox/fixedpoint/fixedpoint
2074 /home/ml/ml/matlab/toolbox/fixedpoint/fidemos
2075 /home/ml/ml/matlab/toolbox/images/images
2076 /home/ml/ml/matlab/toolbox/images/imuitools
2077 /home/ml/ml/matlab/toolbox/images/imdemos
2078 /home/ml/ml/matlab/toolbox/images/iptutils
2079 /home/ml/ml/matlab/toolbox/shared/imageslib
2080 /home/ml/ml/matlab/toolbox/images/medformats
2081 /home/ml/ml/matlab/toolbox/slvnv/simcoverage
2082 /home/ml/ml/matlab/toolbox/optim/optim
2083 /home/ml/ml/matlab/toolbox/optim/optimdemos
2084 /home/ml/ml/matlab/toolbox/shared/optimlib
2085 /home/ml/ml/matlab/toolbox/signal/signal
2086 /home/ml/ml/matlab/toolbox/signal/sigtools
2087 /home/ml/ml/matlab/toolbox/signal/sptoolgui
2088 /home/ml/ml/matlab/toolbox/signal/sigdemos
2089 /home/ml/ml/matlab/toolbox/shared/spcuilib
2090 /home/ml/ml/matlab/toolbox/stats
2091 /home/ml/ml/matlab/toolbox/vr/vr
2092 /home/ml/ml/matlab/toolbox/vr/vrdemos
2093 /home/ml/ml/matlab/work
2094 R = path;
2095 whos
2096 Name Size Bytes Class Attributes
2097
2098 A 4x4 128 double
2099 B 3x3 72 double
2100 R 1x3613 7226 char
2101 a 1x10 80 double
2102 ans 1x15 30 char
2103 b 1x1 8 double
2104 d 1x1 8 double
2105
2106 R
2107
2108 R =
2109
2110 /home/ml/ml/matlab/toolbox/matlab/general:/home/ml/ml/matlab/toolbox/matlab/ops:/home/ml/ml/matlab/toolbox/matlab/lang:/home/ml/ml/matlab/toolbox/matlab/elmat:/home/ml/ml/matlab/toolbox/matlab/elfun:/home/ml/ml/matlab/toolbox/matlab/specfun:/home/ml/ml/matlab/toolbox/matlab/matfun:/home/ml/ml/matlab/toolbox/matlab/datafun:/home/ml/ml/matlab/toolbox/matlab/polyfun:/home/ml/ml/matlab/toolbox/matlab/funfun:/home/ml/ml/matlab/toolbox/matlab/sparfun:/home/ml/ml/matlab/toolbox/matlab/scribe:/home/ml/ml/matlab/toolbox/matlab/graph2d:/home/ml/ml/matlab/toolbox/matlab/graph3d:/home/ml/ml/matlab/toolbox/matlab/specgraph:/home/ml/ml/matlab/toolbox/matlab/graphics:/home/ml/ml/matlab/toolbox/matlab/uitools:/home/ml/ml/matlab/toolbox/matlab/strfun:/home/ml/ml/matlab/toolbox/matlab/imagesci:/home/ml/ml/matlab/toolbox/matlab/iofun:/home/ml/ml/matlab/toolbox/matlab/audiovideo:/home/ml/ml/matlab/toolbox/matlab/timefun:/home/ml/ml/matlab/toolbox/matlab/datatypes:/home/ml/ml/matlab/toolbox/matlab/verctrl:/home/ml/ml/matlab/toolbox/matlab/codetools:/home/ml/ml/matlab/toolbox/matlab/helptools:/home/ml/ml/matlab/toolbox/matlab/demos:/home/ml/ml/matlab/toolbox/matlab/timeseries:/home/ml/ml/matlab/toolbox/matlab/hds:/home/ml/ml/matlab/toolbox/matlab/guide:/home/ml/ml/matlab/toolbox/matlab/plottools:/home/ml/ml/matlab/toolbox/local:/home/ml/ml/matlab/toolbox/shared/controllib:/home/ml/ml/matlab/toolbox/simulink/simulink:/home/ml/ml/matlab/toolbox/simulink/blocks:/home/ml/ml/matlab/toolbox/simulink/components:/home/ml/ml/matlab/toolbox/simulink/fixedandfloat:/home/ml/ml/matlab/toolbox/simulink/fixedandfloat/fxpdemos:/home/ml/ml/matlab/toolbox/simulink/fixedandfloat/obsolete:/home/ml/ml/matlab/toolbox/simulink/simdemos:/home/ml/ml/matlab/toolbox/simulink/simdemos/aerospace:/home/ml/ml/matlab/toolbox/simulink/simdemos/automotive:/home/ml/ml/matlab/toolbox/simulink/simdemos/simfeatures:/home/ml/ml/matlab/toolbox/simulink/simdemos/simgeneral:/home/ml/ml/matlab/toolbox/simulink/dee:/home/ml/ml/matlab/toolbox/shared/dastudio:/home/ml/ml/matlab/toolbox/shared/glue:/home/ml/ml/matlab/toolbox/stateflow/stateflow:/home/ml/ml/matlab/toolbox/rtw/rtw:/home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor:/home/ml/ml/matlab/toolbox/simulink/simulink/modeladvisor/fixpt:/home/ml/ml/matlab/toolbox/simulink/simulink/MPlayIO:/home/ml/ml/matlab/toolbox/simulink/simulink/dataobjectwizard:/home/ml/ml/matlab/toolbox/shared/fixedpointlib:/home/ml/ml/matlab/toolbox/simulink/dataimportexport:/home/ml/ml/matlab/toolbox/shared/hdlshared:/home/ml/ml/matlab/toolbox/stateflow/sfdemos:/home/ml/ml/matlab/toolbox/stateflow/coder:/home/ml/ml/matlab/toolbox/eml/eml:/home/ml/ml/matlab/toolbox/emlcoder/emlcoder:/home/ml/ml/matlab/toolbox/emlcoder/emlcodermex:/home/ml/ml/matlab/toolbox/fixedpoint/fixedpoint:/home/ml/ml/matlab/toolbox/fixedpoint/fidemos:/home/ml/ml/matlab/toolbox/images/images:/home/ml/ml/matlab/toolbox/images/imuitools:/home/ml/ml/matlab/toolbox/images/imdemos:/home/ml/ml/matlab/toolbox/images/iptutils:/home/ml/ml/matlab/toolbox/shared/imageslib:/home/ml/ml/matlab/toolbox/images/medformats:/home/ml/ml/matlab/toolbox/slvnv/simcoverage:/home/ml/ml/matlab/toolbox/optim/optim:/home/ml/ml/matlab/toolbox/optim/optimdemos:/home/ml/ml/matlab/toolbox/shared/optimlib:/home/ml/ml/matlab/toolbox/signal/signal:/home/ml/ml/matlab/toolbox/signal/sigtools:/home/ml/ml/matlab/toolbox/signal/sptoolgui:/home/ml/ml/matlab/toolbox/signal/sigdemos:/home/ml/ml/matlab/toolbox/shared/spcuilib:/home/ml/ml/matlab/toolbox/stats:/home/ml/ml/matlab/toolbox/vr/vr:/home/ml/ml/matlab/toolbox/vr/vrdemos:/home/ml/ml/matlab/work
2111
2112 help rmpath
2113 RMPATH Remove directory from search path.
2114 RMPATH DIRNAME removes the specified directory from the current
2115 matlabpath. Surround the DIRNAME in quotes if the name contains a
2116 space. If DIRNAME is a set of multiple directories separated by path
2117 separators, then each of the specified directories will be removed.
2118
2119 RMPATH DIR1 DIR2 DIR3 removes all the specified directories from the
2120 path.
2121
2122 Use the functional form of RMPATH, such as RMPATH('dir1','dir2',...),
2123 when the directory specification is stored in a string.
2124
2125 P = RMPATH(...) returns the path prior to removing the specified paths.
2126
2127 Examples
2128 rmpath c:\matlab\work
2129 rmpath /home/user/matlab
2130 rmpath /home/user/matlab:/home/user/matlab/test:
2131 rmpath /home/user/matlab /home/user/matlab/test
2132
2133 See also ADDPATH, PATHTOOL, PATH, SAVEPATH, GENPATH, REHASH.
2134
2135 help func1
2136 FUNC1 Is some strange function.
2137
2138 [x, y] = func1(5,5)
2139
2140 x =
2141
2142 10
2143
2144
2145 y =
2146
2147 25
2148
2149 which func1
2150 /home/ml/buenau/func1.m
2151 type func1
2152
2153 function [ a b ] = func1(c, d)
2154 %FUNC1 Is some strange function.
2155
2156
2157 r = 99;
2158 a = c+d;
2159 b = c*d;
2160
2161
2162
2163 myprod([1 2 3])
2164
2165 ans =
2166
2167 6
2168
2169 myprod([1 -1 2 3])
2170
2171 ans =
2172
2173 1
2174
2175 myprod([1 -1 2 3])
2176
2177 ans =
2178
2179 6
2180
2181 exit
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.