Attachment 'Matlab_Crash_Kurs.txt'
Download 1 la
2 ??? Undefined function or variable 'la'.
3
4 ls
5 BORUSSIA dilan_thesis.pdf
6 Desktop dilan_thesis.ps
7 ML_Praktikum_U01.ps fig1.eps
8 ML_Praktikum_U02.pdf flatroll.mat
9 Mail func1.m~
10 Matlab_Crash_Kurs.txt gamma.m
11 T1.txt guide.pdf
12 T1_Mitschnitt.txt hallo.mat
13 T1_Show.txt irb.mat
14 T2.txt irgendwas.mat
15 T2_Mitschnitt.txt learning_biased_sampling.ps
16 T2_Test.ps lib
17 T3 logfile.txt
18 T3_Test.ps matlab
19 T3_Uebung.ps myprod.m
20 T3_Uebung2.ps myprod.m~
21 TT_DB praktikum
22 Tag1.txt ss08
23 Tag1_Mitschnitt.txt ss09
24 bin swissroll.mat
25 convertLabels.m tunet
26 core ws08
27 covs_rep01.ps www
28
29 pwd
30
31 ans =
32
33 /home/buenau
34
35 !hostname
36 bonito
37 1+2
38
39 ans =
40
41 3
42
43 3*4
44
45 ans =
46
47 12
48
49 sin(30)
50
51 ans =
52
53 -0.9880
54
55 help
56 HELP topics:
57
58 buenau/matlab - (No table of contents file)
59 matlab/general - General purpose commands.
60 matlab/ops - Operators and special characters.
61 matlab/lang - Programming language constructs.
62 matlab/elmat - Elementary matrices and matrix manipulation.
63 matlab/elfun - Elementary math functions.
64 matlab/specfun - Specialized math functions.
65 matlab/matfun - Matrix functions - numerical linear algebra.
66 matlab/datafun - Data analysis and Fourier transforms.
67 matlab/polyfun - Interpolation and polynomials.
68 matlab/funfun - Function functions and ODE solvers.
69 matlab/sparfun - Sparse matrices.
70 matlab/scribe - Annotation and Plot Editing.
71 matlab/graph2d - Two dimensional graphs.
72 matlab/graph3d - Three dimensional graphs.
73 matlab/specgraph - Specialized graphs.
74 matlab/graphics - Handle Graphics.
75 matlab/uitools - Graphical User Interface Tools.
76 matlab/strfun - Character strings.
77 matlab/imagesci - Image and scientific data input/output.
78 matlab/iofun - File input and output.
79 matlab/audiovideo - Audio and Video support.
80 matlab/timefun - Time and dates.
81 matlab/datatypes - Data types and structures.
82 matlab/verctrl - Version control.
83 matlab/codetools - Commands for creating and debugging code.
84 matlab/helptools - Help commands.
85 matlab/demos - Examples and demonstrations.
86 matlab/timeseries - Time series data visualization and exploration.
87 matlab/hds - (No table of contents file)
88 matlab/guide - Graphical User Interface Tools.
89 matlab/plottools - Graphical User Interface Tools.
90 toolbox/local - General preferences and configuration information.
91 shared/controllib - Control Library
92 simulink/simulink - Simulink
93 simulink/blocks - Simulink block library.
94 simulink/components - Simulink components.
95 simulink/fixedandfloat - Simulink Fixed Point utilities.
96 fixedandfloat/fxpdemos - Simulink Fixed Point Demos
97 fixedandfloat/obsolete - (No table of contents file)
98 simulink/simdemos - Simulink demonstrations and examples.
99 simdemos/aerospace - Simulink: Aerospace model demonstrations and samples.
100 simdemos/automotive - Simulink: Automotive model demonstrations and samples.
101 simdemos/simfeatures - Simulink: Feature demonstrations and samples.
102 simdemos/simgeneral - Simulink: General model demonstrations and samples.
103 simulink/dee - Differential Equation Editor
104 shared/dastudio - (No table of contents file)
105 shared/glue - (No table of contents file)
106 stateflow/stateflow - Stateflow
107 rtw/rtw - (No table of contents file)
108 simulink/modeladvisor - (No table of contents file)
109 modeladvisor/fixpt - (No table of contents file)
110 simulink/MPlayIO - (No table of contents file)
111 simulink/dataobjectwizard - (No table of contents file)
112 shared/fixedpointlib - (No table of contents file)
113 simulink/dataimportexport - (No table of contents file)
114 shared/hdlshared - (No table of contents file)
115 stateflow/sfdemos - Stateflow demonstrations and samples.
116 stateflow/coder - (No table of contents file)
117 eml/eml - (No table of contents file)
118 emlcoder/emlcoder - Embedded MATLAB Coder.
119 emlcoder/emlcodermex - (No table of contents file)
120 fixedpoint/fixedpoint - (No table of contents file)
121 fixedpoint/fidemos - (No table of contents file)
122 images/images - Image Processing Toolbox
123 images/imuitools - Image Processing Toolbox --- imuitools
124 images/imdemos - Image Processing Toolbox --- demos and sample images
125 images/iptutils - Image Processing Toolbox --- utilities
126 shared/imageslib - Image Processing Toolbox Library
127 images/medformats - Image Processing Toolbox --- Medical formats
128 slvnv/simcoverage - (No table of contents file)
129 optim/optim - Optimization Toolbox
130 optim/optimdemos -
131 shared/optimlib - Optimization Toolbox Library
132 signal/signal - Signal Processing Toolbox
133 signal/sigtools - (No table of contents file)
134 signal/sptoolgui - (No table of contents file)
135 signal/sigdemos - (No table of contents file)
136 shared/spcuilib - (No table of contents file)
137 toolbox/stats - Statistics Toolbox
138 vr/vr - (No table of contents file)
139 vr/vrdemos - Virtual Reality Toolbox examples.
140 matlab/work - (No table of contents file)
141
142 help ops
143 Operators and special characters.
144
145 Arithmetic operators.
146 plus - Plus +
147 uplus - Unary plus +
148 minus - Minus -
149 uminus - Unary minus -
150 mtimes - Matrix multiply *
151 times - Array multiply .*
152 mpower - Matrix power ^
153 power - Array power .^
154 mldivide - Backslash or left matrix divide \
155 mrdivide - Slash or right matrix divide /
156 ldivide - Left array divide .\
157 rdivide - Right array divide ./
158 kron - Kronecker tensor product kron
159
160 Relational operators.
161 eq - Equal ==
162 ne - Not equal ~=
163 lt - Less than <
164 gt - Greater than >
165 le - Less than or equal <=
166 ge - Greater than or equal >=
167
168 Logical operators.
169 relop - Short-circuit logical AND &&
170 relop - Short-circuit logical OR ||
171 and - Element-wise logical AND &
172 or - Element-wise logical OR |
173 not - Logical NOT ~
174 xor - Logical EXCLUSIVE OR
175 any - True if any element of vector is nonzero
176 all - True if all elements of vector are nonzero
177
178 Special characters.
179 colon - Colon :
180 paren - Parentheses and subscripting ( )
181 paren - Brackets [ ]
182 paren - Braces and subscripting { }
183 punct - Function handle creation @
184 punct - Decimal point .
185 punct - Structure field access .
186 punct - Parent directory ..
187 punct - Continuation ...
188 punct - Separator ,
189 punct - Semicolon ;
190 punct - Comment %
191 punct - Invoke operating system command !
192 punct - Assignment =
193 punct - Quote '
194 transpose - Transpose .'
195 ctranspose - Complex conjugate transpose '
196 horzcat - Horizontal concatenation [,]
197 vertcat - Vertical concatenation [;]
198 subsasgn - Subscripted assignment ( ),{ },.
199 subsref - Subscripted reference ( ),{ },.
200 subsindex - Subscript index
201
202 Bitwise operators.
203 bitand - Bit-wise AND.
204 bitcmp - Complement bits.
205 bitor - Bit-wise OR.
206 bitmax - Maximum floating point integer.
207 bitxor - Bit-wise XOR.
208 bitset - Set bit.
209 bitget - Get bit.
210 bitshift - Bit-wise shift.
211
212 Set operators.
213 union - Set union.
214 unique - Set unique.
215 intersect - Set intersection.
216 setdiff - Set difference.
217 setxor - Set exclusive-or.
218 ismember - True for set member.
219
220 See also ARITH, RELOP, SLASH, FUNCTION_HANDLE.
221
222 1+2
223
224 ans =
225
226 3
227
228 a = 50;
229 a+3
230
231 ans =
232
233 53
234
235 b = 100;
236 b = 100
237
238 b =
239
240 100
241
242 b = 100;
243 whos
244 Name Size Bytes Class Attributes
245
246 a 1x1 8 double
247 ans 1x1 8 double
248 b 1x1 8 double
249
250 save whateverfilename.mat
251 clear
252 load whateverfilename
253 clear
254 whos
255 load whateverfilename
256 whos
257 Name Size Bytes Class Attributes
258
259 a 1x1 8 double
260 ans 1x1 8 double
261 b 1x1 8 double
262
263 ls *mat
264 flatroll.mat irb.mat swissroll.mat
265 hallo.mat irgendwas.mat whateverfilename.mat
266
267 whos
268 Name Size Bytes Class Attributes
269
270 a 1x1 8 double
271 ans 1x1 8 double
272 b 1x1 8 double
273
274 a
275
276 a =
277
278 50
279
280 a = [ 1 3 4 5 ]
281
282 a =
283
284 1 3 4 5
285
286 whos
287 Name Size Bytes Class Attributes
288
289 a 1x4 32 double
290 ans 1x1 8 double
291 b 1x1 8 double
292
293 a
294
295 a =
296
297 1 3 4 5
298
299 a'
300
301 ans =
302
303 1
304 3
305 4
306 5
307
308 a'
309
310 ans =
311
312 1
313 3
314 4
315 5
316
317 a(1)
318
319 ans =
320
321 1
322
323 a
324
325 a =
326
327 1 3 4 5
328
329 a(2)
330
331 ans =
332
333 3
334
335 a([1 2])
336
337 ans =
338
339 1 3
340
341 a([1 2 99])
342 ??? Index exceeds matrix dimensions.
343
344 1:10
345
346 ans =
347
348 1 2 3 4 5 6 7 8 9 10
349
350 1:2:10
351
352 ans =
353
354 1 3 5 7 9
355
356 a
357
358 a =
359
360 1 3 4 5
361
362 a([2 3 4])
363
364 ans =
365
366 3 4 5
367
368 a(2:4)
369
370 ans =
371
372 3 4 5
373
374 a(2:end)
375
376 ans =
377
378 3 4 5
379
380 a(1:end)
381
382 ans =
383
384 1 3 4 5
385
386 A = [ 5 6 7; 8 6 3; 2 0 3 ]
387
388 A =
389
390 5 6 7
391 8 6 3
392 2 0 3
393
394 A(1,1)
395
396 ans =
397
398 5
399
400 A(2,3)
401
402 ans =
403
404 3
405
406 whos
407 Name Size Bytes Class Attributes
408
409 A 3x3 72 double
410 a 1x4 32 double
411 ans 1x1 8 double
412 b 1x1 8 double
413
414 A(4,5)
415 ??? Index exceeds matrix dimensions.
416
417 A(3, 3)
418
419 ans =
420
421 3
422
423 A(4)
424
425 ans =
426
427 6
428
429 help ind2sub
430 IND2SUB Multiple subscripts from linear index.
431 IND2SUB is used to determine the equivalent subscript values
432 corresponding to a given single index into an array.
433
434 [I,J] = IND2SUB(SIZ,IND) returns the arrays I and J containing the
435 equivalent row and column subscripts corresponding to the index
436 matrix IND for a matrix of size SIZ.
437 For matrices, [I,J] = IND2SUB(SIZE(A),FIND(A>5)) returns the same
438 values as [I,J] = FIND(A>5).
439
440 [I1,I2,I3,...,In] = IND2SUB(SIZ,IND) returns N subscript arrays
441 I1,I2,..,In containing the equivalent N-D array subscripts
442 equivalent to IND for an array of size SIZ.
443
444 Class support for input IND:
445 float: double, single
446
447 See also SUB2IND, FIND.
448
449 Reference page in Help browser
450 doc ind2sub
451
452 help sub2ind
453 SUB2IND Linear index from multiple subscripts.
454 SUB2IND is used to determine the equivalent single index
455 corresponding to a given set of subscript values.
456
457 IND = SUB2IND(SIZ,I,J) returns the linear index equivalent to the
458 row and column subscripts in the arrays I and J for an matrix of
459 size SIZ.
460
461 IND = SUB2IND(SIZ,I1,I2,...,IN) returns the linear index
462 equivalent to the N subscripts in the arrays I1,I2,...,IN for an
463 array of size SIZ.
464
465 I1,I2,...,IN must have the same size, and IND will have the same size
466 as I1,I2,...,IN. For an array A, if IND = SUB2IND(SIZE(A),I1,...,IN)),
467 then A(IND(k))=A(I1(k),...,IN(k)) for all k.
468
469 Class support for inputs I,J:
470 float: double, single
471
472 See also IND2SUB.
473
474 Reference page in Help browser
475 doc sub2ind
476
477 A
478
479 A =
480
481 5 6 7
482 8 6 3
483 2 0 3
484
485 A(1,[1 2 3])
486
487 ans =
488
489 5 6 7
490
491 A(1,1:3)
492
493 ans =
494
495 5 6 7
496
497 A(1,1:end)
498
499 ans =
500
501 5 6 7
502
503 A(1,:)
504
505 ans =
506
507 5 6 7
508
509 A(:,4)
510 ??? Index exceeds matrix dimensions.
511
512 A(:,3)
513
514 ans =
515
516 7
517 3
518 3
519
520 A(:,[1 2])
521
522 ans =
523
524 5 6
525 8 6
526 2 0
527
528 [ A A A ]
529
530 ans =
531
532 5 6 7 5 6 7 5 6 7
533 8 6 3 8 6 3 8 6 3
534 2 0 3 2 0 3 2 0 3
535
536 [ A; A ;A ]
537
538 ans =
539
540 5 6 7
541 8 6 3
542 2 0 3
543 5 6 7
544 8 6 3
545 2 0 3
546 5 6 7
547 8 6 3
548 2 0 3
549
550 A(:,2) = A(:,1)
551
552 A =
553
554 5 5 7
555 8 8 3
556 2 2 3
557
558 A(:,2) = A
559 ??? Subscripted assignment dimension mismatch.
560
561 help repmat
562 REPMAT Replicate and tile an array.
563 B = repmat(A,M,N) creates a large matrix B consisting of an M-by-N
564 tiling of copies of A. The size of B is [size(A,1)*M, size(A,2)*N].
565 The statement repmat(A,N) creates an N-by-N tiling.
566
567 B = REPMAT(A,[M N]) accomplishes the same result as repmat(A,M,N).
568
569 B = REPMAT(A,[M N P ...]) tiles the array A to produce a
570 multidimensional array B composed of copies of A. The size of B is
571 [size(A,1)*M, size(A,2)*N, size(A,3)*P, ...].
572
573 REPMAT(A,M,N) when A is a scalar is commonly used to produce an M-by-N
574 matrix filled with A's value and having A's CLASS. For certain values,
575 you may achieve the same results using other functions. Namely,
576 REPMAT(NAN,M,N) is the same as NAN(M,N)
577 REPMAT(SINGLE(INF),M,N) is the same as INF(M,N,'single')
578 REPMAT(INT8(0),M,N) is the same as ZEROS(M,N,'int8')
579 REPMAT(UINT32(1),M,N) is the same as ONES(M,N,'uint32')
580 REPMAT(EPS,M,N) is the same as EPS(ONES(M,N))
581
582 Example:
583 repmat(magic(2), 2, 3)
584 repmat(uint8(5), 2, 3)
585
586 Class support for input A:
587 float: double, single
588
589 See also BSXFUN, MESHGRID, ONES, ZEROS, NAN, INF.
590
591 Overloaded functions or methods (ones with the same name in other directories)
592 help categorical/repmat.m
593
594 Reference page in Help browser
595 doc repmat
596
597 [ A; A ;A ]
598
599 ans =
600
601 5 5 7
602 8 8 3
603 2 2 3
604 5 5 7
605 8 8 3
606 2 2 3
607 5 5 7
608 8 8 3
609 2 2 3
610
611 repmat(A, [ 3 1 ])
612
613 ans =
614
615 5 5 7
616 8 8 3
617 2 2 3
618 5 5 7
619 8 8 3
620 2 2 3
621 5 5 7
622 8 8 3
623 2 2 3
624
625 A*A
626
627 ans =
628
629 79 79 71
630 110 110 89
631 32 32 29
632
633 5*A
634
635 ans =
636
637 25 25 35
638 40 40 15
639 10 10 15
640
641 A
642
643 A =
644
645 5 5 7
646 8 8 3
647 2 2 3
648
649 A > 2
650
651 ans =
652
653 1 1 1
654 1 1 1
655 0 0 1
656
657 find(A > 2)
658
659 ans =
660
661 1
662 2
663 4
664 5
665 7
666 8
667 9
668
669 find(A > 2) = -1
670
671 find =
672
673 -1 -1 0 -1 -1 0 -1 -1 -1
674
675
676 A(find(A > 2)) = -1
677 ??? Subscript indices must either be real positive integers or logicals.
678
679 find(A>2)
680
681 ans =
682
683 -1 -1 -1 -1 -1 -1 -1
684
685 hel
686 ??? Undefined function or variable 'hel'.
687
688 help
689 HELP topics:
690
691 buenau/matlab - (No table of contents file)
692 matlab/general - General purpose commands.
693 matlab/ops - Operators and special characters.
694 matlab/lang - Programming language constructs.
695 matlab/elmat - Elementary matrices and matrix manipulation.
696 matlab/elfun - Elementary math functions.
697 matlab/specfun - Specialized math functions.
698 matlab/matfun - Matrix functions - numerical linear algebra.
699 matlab/datafun - Data analysis and Fourier transforms.
700 matlab/polyfun - Interpolation and polynomials.
701 matlab/funfun - Function functions and ODE solvers.
702 matlab/sparfun - Sparse matrices.
703 matlab/scribe - Annotation and Plot Editing.
704 matlab/graph2d - Two dimensional graphs.
705 matlab/graph3d - Three dimensional graphs.
706 matlab/specgraph - Specialized graphs.
707 matlab/graphics - Handle Graphics.
708 matlab/uitools - Graphical User Interface Tools.
709 matlab/strfun - Character strings.
710 matlab/imagesci - Image and scientific data input/output.
711 matlab/iofun - File input and output.
712 matlab/audiovideo - Audio and Video support.
713 matlab/timefun - Time and dates.
714 matlab/datatypes - Data types and structures.
715 matlab/verctrl - Version control.
716 matlab/codetools - Commands for creating and debugging code.
717 matlab/helptools - Help commands.
718 matlab/demos - Examples and demonstrations.
719 matlab/timeseries - Time series data visualization and exploration.
720 matlab/hds - (No table of contents file)
721 matlab/guide - Graphical User Interface Tools.
722 matlab/plottools - Graphical User Interface Tools.
723 toolbox/local - General preferences and configuration information.
724 shared/controllib - Control Library
725 simulink/simulink - Simulink
726 simulink/blocks - Simulink block library.
727 simulink/components - Simulink components.
728 simulink/fixedandfloat - Simulink Fixed Point utilities.
729 fixedandfloat/fxpdemos - Simulink Fixed Point Demos
730 fixedandfloat/obsolete - (No table of contents file)
731 simulink/simdemos - Simulink demonstrations and examples.
732 simdemos/aerospace - Simulink: Aerospace model demonstrations and samples.
733 simdemos/automotive - Simulink: Automotive model demonstrations and samples.
734 simdemos/simfeatures - Simulink: Feature demonstrations and samples.
735 simdemos/simgeneral - Simulink: General model demonstrations and samples.
736 simulink/dee - Differential Equation Editor
737 shared/dastudio - (No table of contents file)
738 shared/glue - (No table of contents file)
739 stateflow/stateflow - Stateflow
740 rtw/rtw - (No table of contents file)
741 simulink/modeladvisor - (No table of contents file)
742 modeladvisor/fixpt - (No table of contents file)
743 simulink/MPlayIO - (No table of contents file)
744 simulink/dataobjectwizard - (No table of contents file)
745 shared/fixedpointlib - (No table of contents file)
746 simulink/dataimportexport - (No table of contents file)
747 shared/hdlshared - (No table of contents file)
748 stateflow/sfdemos - Stateflow demonstrations and samples.
749 stateflow/coder - (No table of contents file)
750 eml/eml - (No table of contents file)
751 emlcoder/emlcoder - Embedded MATLAB Coder.
752 emlcoder/emlcodermex - (No table of contents file)
753 fixedpoint/fixedpoint - (No table of contents file)
754 fixedpoint/fidemos - (No table of contents file)
755 images/images - Image Processing Toolbox
756 images/imuitools - Image Processing Toolbox --- imuitools
757 images/imdemos - Image Processing Toolbox --- demos and sample images
758 images/iptutils - Image Processing Toolbox --- utilities
759 shared/imageslib - Image Processing Toolbox Library
760 images/medformats - Image Processing Toolbox --- Medical formats
761 slvnv/simcoverage - (No table of contents file)
762 optim/optim - Optimization Toolbox
763 optim/optimdemos -
764 shared/optimlib - Optimization Toolbox Library
765 signal/signal - Signal Processing Toolbox
766 signal/sigtools - (No table of contents file)
767 signal/sptoolgui - (No table of contents file)
768 signal/sigdemos - (No table of contents file)
769 shared/spcuilib - (No table of contents file)
770 toolbox/stats - Statistics Toolbox
771 vr/vr - (No table of contents file)
772 vr/vrdemos - Virtual Reality Toolbox examples.
773 matlab/work - (No table of contents file)
774
775 whos
776 Name Size Bytes Class Attributes
777
778 A 3x3 72 double
779 a 1x4 32 double
780 ans 1x7 56 double
781 b 1x1 8 double
782 find 1x9 72 double
783
784 clear find
785 A(find(A > 2)) = -1
786
787 A =
788
789 -1 -1 -1
790 -1 -1 -1
791 2 2 -1
792
793 eye(4)
794
795 ans =
796
797 1 0 0 0
798 0 1 0 0
799 0 0 1 0
800 0 0 0 1
801
802 zeros(4, 4)
803
804 ans =
805
806 0 0 0 0
807 0 0 0 0
808 0 0 0 0
809 0 0 0 0
810
811 ones(4, 4)
812
813 ans =
814
815 1 1 1 1
816 1 1 1 1
817 1 1 1 1
818 1 1 1 1
819
820 diag([1 2 3 6])
821
822 ans =
823
824 1 0 0 0
825 0 2 0 0
826 0 0 3 0
827 0 0 0 6
828
829 rand(5, 5)
830
831 ans =
832
833 0.8147 0.0975 0.1576 0.1419 0.6557
834 0.9058 0.2785 0.9706 0.4218 0.0357
835 0.1270 0.5469 0.9572 0.9157 0.8491
836 0.9134 0.9575 0.4854 0.7922 0.9340
837 0.6324 0.9649 0.8003 0.9595 0.6787
838
839 randn(5, 5)
840
841 ans =
842
843 -0.4326 1.1909 -0.1867 0.1139 0.2944
844 -1.6656 1.1892 0.7258 1.0668 -1.3362
845 0.1253 -0.0376 -0.5883 0.0593 0.7143
846 0.2877 0.3273 2.1832 -0.0956 1.6236
847 -1.1465 0.1746 -0.1364 -0.8323 -0.6918
848
849 which repmszt
850 'repmszt' not found.
851 which repmat
852 /home/ml/matlab/toolbox/matlab/elmat/repmat.m
853 type repmat
854
855 function B = repmat(A,M,N)
856 %REPMAT Replicate and tile an array.
857 % B = repmat(A,M,N) creates a large matrix B consisting of an M-by-N
858 % tiling of copies of A. The size of B is [size(A,1)*M, size(A,2)*N].
859 % The statement repmat(A,N) creates an N-by-N tiling.
860 %
861 % B = REPMAT(A,[M N]) accomplishes the same result as repmat(A,M,N).
862 %
863 % B = REPMAT(A,[M N P ...]) tiles the array A to produce a
864 % multidimensional array B composed of copies of A. The size of B is
865 % [size(A,1)*M, size(A,2)*N, size(A,3)*P, ...].
866 %
867 % REPMAT(A,M,N) when A is a scalar is commonly used to produce an M-by-N
868 % matrix filled with A's value and having A's CLASS. For certain values,
869 % you may achieve the same results using other functions. Namely,
870 % REPMAT(NAN,M,N) is the same as NAN(M,N)
871 % REPMAT(SINGLE(INF),M,N) is the same as INF(M,N,'single')
872 % REPMAT(INT8(0),M,N) is the same as ZEROS(M,N,'int8')
873 % REPMAT(UINT32(1),M,N) is the same as ONES(M,N,'uint32')
874 % REPMAT(EPS,M,N) is the same as EPS(ONES(M,N))
875 %
876 % Example:
877 % repmat(magic(2), 2, 3)
878 % repmat(uint8(5), 2, 3)
879 %
880 % Class support for input A:
881 % float: double, single
882 %
883 % See also BSXFUN, MESHGRID, ONES, ZEROS, NAN, INF.
884
885 % Copyright 1984-2006 The MathWorks, Inc.
886 % $Revision: 1.17.4.10 $ $Date: 2006/12/15 19:27:37 $
887
888 if nargin < 2
889 error('MATLAB:repmat:NotEnoughInputs', 'Requires at least 2 inputs.')
890 end
891
892 if nargin == 2
893 if isscalar(M)
894 siz = [M M];
895 else
896 siz = M;
897 end
898 else
899 siz = [M N];
900 end
901
902 if isscalar(A)
903 nelems = prod(siz);
904 if nelems>0
905 % Since B doesn't exist, the first statement creates a B with
906 % the right size and type. Then use scalar expansion to
907 % fill the array. Finally reshape to the specified size.
908 B(nelems) = A;
909 if ~isequal(B(1), B(nelems)) || ~(isnumeric(A) || islogical(A))
910 % if B(1) is the same as B(nelems), then the default value filled in for
911 % B(1:end-1) is already A, so we don't need to waste time redoing
912 % this operation. (This optimizes the case that A is a scalar zero of
913 % some class.)
914 B(:) = A;
915 end
916 B = reshape(B,siz);
917 else
918 B = A(ones(siz));
919 end
920 elseif ndims(A) == 2 && numel(siz) == 2
921 [m,n] = size(A);
922
923 if (m == 1 && siz(2) == 1)
924 B = A(ones(siz(1), 1), :);
925 elseif (n == 1 && siz(1) == 1)
926 B = A(:, ones(siz(2), 1));
927 else
928 mind = (1:m)';
929 nind = (1:n)';
930 mind = mind(:,ones(1,siz(1)));
931 nind = nind(:,ones(1,siz(2)));
932 B = A(mind,nind);
933 end
934 else
935 Asiz = size(A);
936 Asiz = [Asiz ones(1,length(siz)-length(Asiz))];
937 siz = [siz ones(1,length(Asiz)-length(siz))];
938 for i=length(Asiz):-1:1
939 ind = (1:Asiz(i))';
940 subs{i} = ind(:,ones(1,siz(i)));
941 end
942 B = A(subs{:});
943 end
944
945
946
947
948
949 mkdir Matlab_Crash_Kurs
950 cd Matlab_Crash_Kurs/
951 ls
952 tzuurt
953 ??? Undefined function or variable 'tzuurt'.
954
955 paths
956 ??? Undefined function or variable 'paths'.
957
958 path
959
960 MATLABPATH
961
962 /home/buenau/matlab
963 /home/ml/matlab/toolbox/matlab/general
964 /home/ml/matlab/toolbox/matlab/ops
965 /home/ml/matlab/toolbox/matlab/lang
966 /home/ml/matlab/toolbox/matlab/elmat
967 /home/ml/matlab/toolbox/matlab/elfun
968 /home/ml/matlab/toolbox/matlab/specfun
969 /home/ml/matlab/toolbox/matlab/matfun
970 /home/ml/matlab/toolbox/matlab/datafun
971 /home/ml/matlab/toolbox/matlab/polyfun
972 /home/ml/matlab/toolbox/matlab/funfun
973 /home/ml/matlab/toolbox/matlab/sparfun
974 /home/ml/matlab/toolbox/matlab/scribe
975 /home/ml/matlab/toolbox/matlab/graph2d
976 /home/ml/matlab/toolbox/matlab/graph3d
977 /home/ml/matlab/toolbox/matlab/specgraph
978 /home/ml/matlab/toolbox/matlab/graphics
979 /home/ml/matlab/toolbox/matlab/uitools
980 /home/ml/matlab/toolbox/matlab/strfun
981 /home/ml/matlab/toolbox/matlab/imagesci
982 /home/ml/matlab/toolbox/matlab/iofun
983 /home/ml/matlab/toolbox/matlab/audiovideo
984 /home/ml/matlab/toolbox/matlab/timefun
985 /home/ml/matlab/toolbox/matlab/datatypes
986 /home/ml/matlab/toolbox/matlab/verctrl
987 /home/ml/matlab/toolbox/matlab/codetools
988 /home/ml/matlab/toolbox/matlab/helptools
989 /home/ml/matlab/toolbox/matlab/demos
990 /home/ml/matlab/toolbox/matlab/timeseries
991 /home/ml/matlab/toolbox/matlab/hds
992 /home/ml/matlab/toolbox/matlab/guide
993 /home/ml/matlab/toolbox/matlab/plottools
994 /home/ml/matlab/toolbox/local
995 /home/ml/matlab/toolbox/shared/controllib
996 /home/ml/matlab/toolbox/simulink/simulink
997 /home/ml/matlab/toolbox/simulink/blocks
998 /home/ml/matlab/toolbox/simulink/components
999 /home/ml/matlab/toolbox/simulink/fixedandfloat
1000 /home/ml/matlab/toolbox/simulink/fixedandfloat/fxpdemos
1001 /home/ml/matlab/toolbox/simulink/fixedandfloat/obsolete
1002 /home/ml/matlab/toolbox/simulink/simdemos
1003 /home/ml/matlab/toolbox/simulink/simdemos/aerospace
1004 /home/ml/matlab/toolbox/simulink/simdemos/automotive
1005 /home/ml/matlab/toolbox/simulink/simdemos/simfeatures
1006 /home/ml/matlab/toolbox/simulink/simdemos/simgeneral
1007 /home/ml/matlab/toolbox/simulink/dee
1008 /home/ml/matlab/toolbox/shared/dastudio
1009 /home/ml/matlab/toolbox/shared/glue
1010 /home/ml/matlab/toolbox/stateflow/stateflow
1011 /home/ml/matlab/toolbox/rtw/rtw
1012 /home/ml/matlab/toolbox/simulink/simulink/modeladvisor
1013 /home/ml/matlab/toolbox/simulink/simulink/modeladvisor/fixpt
1014 /home/ml/matlab/toolbox/simulink/simulink/MPlayIO
1015 /home/ml/matlab/toolbox/simulink/simulink/dataobjectwizard
1016 /home/ml/matlab/toolbox/shared/fixedpointlib
1017 /home/ml/matlab/toolbox/simulink/dataimportexport
1018 /home/ml/matlab/toolbox/shared/hdlshared
1019 /home/ml/matlab/toolbox/stateflow/sfdemos
1020 /home/ml/matlab/toolbox/stateflow/coder
1021 /home/ml/matlab/toolbox/eml/eml
1022 /home/ml/matlab/toolbox/emlcoder/emlcoder
1023 /home/ml/matlab/toolbox/emlcoder/emlcodermex
1024 /home/ml/matlab/toolbox/fixedpoint/fixedpoint
1025 /home/ml/matlab/toolbox/fixedpoint/fidemos
1026 /home/ml/matlab/toolbox/images/images
1027 /home/ml/matlab/toolbox/images/imuitools
1028 /home/ml/matlab/toolbox/images/imdemos
1029 /home/ml/matlab/toolbox/images/iptutils
1030 /home/ml/matlab/toolbox/shared/imageslib
1031 /home/ml/matlab/toolbox/images/medformats
1032 /home/ml/matlab/toolbox/slvnv/simcoverage
1033 /home/ml/matlab/toolbox/optim/optim
1034 /home/ml/matlab/toolbox/optim/optimdemos
1035 /home/ml/matlab/toolbox/shared/optimlib
1036 /home/ml/matlab/toolbox/signal/signal
1037 /home/ml/matlab/toolbox/signal/sigtools
1038 /home/ml/matlab/toolbox/signal/sptoolgui
1039 /home/ml/matlab/toolbox/signal/sigdemos
1040 /home/ml/matlab/toolbox/shared/spcuilib
1041 /home/ml/matlab/toolbox/stats
1042 /home/ml/matlab/toolbox/vr/vr
1043 /home/ml/matlab/toolbox/vr/vrdemos
1044 /home/ml/matlab/work
1045 tzuurt
1046 ??? Undefined function or variable 'tzuurt'.
1047
1048 func1(3, 4)
1049
1050 ans =
1051
1052 7
1053
1054 which func1
1055 /home/buenau/Matlab_Crash_Kurs/func1.m
1056 func1(3, 4)
1057
1058 ans =
1059
1060 7
1061
1062 [ r1, r2 ] = func1(3, 4)
1063
1064 r1 =
1065
1066 7
1067
1068
1069 r2 =
1070
1071 12
1072
1073 help func1
1074 FUCN1 Compute sum and product.
1075 Blabla
1076 Blabla
1077
1078 :w
1079 ??? :w
1080 |
1081 Error: Unexpected MATLAB operator.
1082
1083 [ r1, r2 ] = func1(3, 4)
1084 whos
1085 Name Size Bytes Class Attributes
1086
1087 a 1x1 8 double
1088 c 1x1 8 double
1089 d 1x1 8 double
1090
1091 a = 77778.3;
1092 dbcont
1093
1094 r1 =
1095
1096 7.7778e+04
1097
1098
1099 r2 =
1100
1101 12
1102
1103 :w
1104 ??? :w
1105 |
1106 Error: Unexpected MATLAB operator.
1107
1108 myprod([-1 0 3 8])
1109
1110 ans =
1111
1112 24
1113
1114 sum([1 5 6])
1115
1116 ans =
1117
1118 12
1119
1120 A
1121
1122 A =
1123
1124 -1 -1 -1
1125 -1 -1 -1
1126 2 2 -1
1127
1128 sum(A, 1)
1129
1130 ans =
1131
1132 0 0 -3
1133
1134 sum(A, 2)
1135
1136 ans =
1137
1138 -3
1139 -3
1140 3
1141
1142 sum(A, 1)
1143
1144 ans =
1145
1146 0 0 -3
1147
1148 [1 1 1]*A
1149
1150 ans =
1151
1152 0 0 -3
1153
1154 A*[1 1 1]'
1155
1156 ans =
1157
1158 -3
1159 -3
1160 3
1161
1162 x = linspace(0, 4*pi, 100);
1163 y = sin(x);
1164 plot(x, y)
1165 figure
1166 plot(x, y)
1167 figure(1);
1168 help plot
1169 PLOT Linear plot.
1170 PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
1171 then the vector is plotted versus the rows or columns of the matrix,
1172 whichever line up. If X is a scalar and Y is a vector, disconnected
1173 line objects are created and plotted as discrete points vertically at
1174 X.
1175
1176 PLOT(Y) plots the columns of Y versus their index.
1177 If Y is complex, PLOT(Y) is equivalent to PLOT(real(Y),imag(Y)).
1178 In all other uses of PLOT, the imaginary part is ignored.
1179
1180 Various line types, plot symbols and colors may be obtained with
1181 PLOT(X,Y,S) where S is a character string made from one element
1182 from any or all the following 3 columns:
1183
1184 b blue . point - solid
1185 g green o circle : dotted
1186 r red x x-mark -. dashdot
1187 c cyan + plus -- dashed
1188 m magenta * star (none) no line
1189 y yellow s square
1190 k black d diamond
1191 w white v triangle (down)
1192 ^ triangle (up)
1193 < triangle (left)
1194 > triangle (right)
1195 p pentagram
1196 h hexagram
1197
1198 For example, PLOT(X,Y,'c+:') plots a cyan dotted line with a plus
1199 at each data point; PLOT(X,Y,'bd') plots blue diamond at each data
1200 point but does not draw any line.
1201
1202 PLOT(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by
1203 the (X,Y,S) triples, where the X's and Y's are vectors or matrices
1204 and the S's are strings.
1205
1206 For example, PLOT(X,Y,'y-',X,Y,'go') plots the data twice, with a
1207 solid yellow line interpolating green circles at the data points.
1208
1209 The PLOT command, if no color is specified, makes automatic use of
1210 the colors specified by the axes ColorOrder property. The default
1211 ColorOrder is listed in the table above for color systems where the
1212 default is blue for one line, and for multiple lines, to cycle
1213 through the first six colors in the table. For monochrome systems,
1214 PLOT cycles over the axes LineStyleOrder property.
1215
1216 If you do not specify a marker type, PLOT uses no marker.
1217 If you do not specify a line style, PLOT uses a solid line.
1218
1219 PLOT(AX,...) plots into the axes with handle AX.
1220
1221 PLOT returns a column vector of handles to lineseries objects, one
1222 handle per plotted line.
1223
1224 The X,Y pairs, or X,Y,S triples, can be followed by
1225 parameter/value pairs to specify additional properties
1226 of the lines. For example, PLOT(X,Y,'LineWidth',2,'Color',[.6 0 0])
1227 will create a plot with a dark red line width of 2 points.
1228
1229 Example
1230 x = -pi:pi/10:pi;
1231 y = tan(sin(x)) - sin(tan(x));
1232 plot(x,y,'--rs','LineWidth',2,...
1233 'MarkerEdgeColor','k',...
1234 'MarkerFaceColor','g',...
1235 'MarkerSize',10)
1236
1237 See also PLOTTOOLS, SEMILOGX, SEMILOGY, LOGLOG, PLOTYY, PLOT3, GRID,
1238 TITLE, XLABEL, YLABEL, AXIS, AXES, HOLD, LEGEND, SUBPLOT, SCATTER, PLOT3.
1239
1240 Overloaded functions or methods (ones with the same name in other directories)
1241 help timeseries/plot.m
1242 help SimTimeseries/plot.m
1243 help dspdata/plot.m
1244
1245 Reference page in Help browser
1246 doc plot
1247
1248 plot(x, y, 'r--')
1249 plot(x, y, 'ro)
1250 ??? plot(x, y, 'ro)
1251 |
1252 Error: A MATLAB string constant is not terminated properly.
1253
1254 plot(x, y, 'ro')
1255 hold on;
1256 plot(x, y)
1257 z = cos(x);
1258 plot(x, z, 'kd')
1259 title('Title')
1260 xlabel('X');
1261 xlabel('sin(x)');
1262 legend('sin(x)', 'sin(x)', 'cos(x)')
1263 gca
1264
1265 ans =
1266
1267 158.0016
1268
1269 get(gca)
1270 ActivePositionProperty = outerposition
1271 ALim = [0 1]
1272 ALimMode = auto
1273 AmbientLightColor = [1 1 1]
1274 Box = on
1275 CameraPosition = [7 0 17.3205]
1276 CameraPositionMode = auto
1277 CameraTarget = [7 0 0]
1278 CameraTargetMode = auto
1279 CameraUpVector = [0 1 0]
1280 CameraUpVectorMode = auto
1281 CameraViewAngle = [6.60861]
1282 CameraViewAngleMode = auto
1283 CLim = [0 1]
1284 CLimMode = auto
1285 Color = [1 1 1]
1286 CurrentPoint = [ (2 by 3) double array]
1287 ColorOrder = [ (7 by 3) double array]
1288 DataAspectRatio = [7 1 1]
1289 DataAspectRatioMode = auto
1290 DrawMode = normal
1291 FontAngle = normal
1292 FontName = Helvetica
1293 FontSize = [10]
1294 FontUnits = points
1295 FontWeight = normal
1296 GridLineStyle = :
1297 Layer = bottom
1298 LineStyleOrder = -
1299 LineWidth = [0.5]
1300 MinorGridLineStyle = :
1301 NextPlot = add
1302 OuterPosition = [0 0 1 1]
1303 PlotBoxAspectRatio = [1 1 1]
1304 PlotBoxAspectRatioMode = auto
1305 Projection = orthographic
1306 Position = [0.13 0.135135 0.775 0.783784]
1307 TickLength = [0.01 0.025]
1308 TickDir = in
1309 TickDirMode = auto
1310 TightInset = [0.0747423 0.135135 0.0206186 0.0810811]
1311 Title = [322.001]
1312 Units = normalized
1313 View = [0 90]
1314 XColor = [0 0 0]
1315 XDir = normal
1316 XGrid = off
1317 XLabel = [323.001]
1318 XAxisLocation = bottom
1319 XLim = [0 14]
1320 XLimMode = auto
1321 XMinorGrid = off
1322 XMinorTick = off
1323 XScale = linear
1324 XTick = [ (1 by 8) double array]
1325 XTickLabel =
1326 0
1327 2
1328 4
1329 6
1330 8
1331 10
1332 12
1333 14
1334 XTickLabelMode = auto
1335 XTickMode = auto
1336 YColor = [0 0 0]
1337 YDir = normal
1338 YGrid = off
1339 YLabel = [324.001]
1340 YAxisLocation = left
1341 YLim = [-1 1]
1342 YLimMode = auto
1343 YMinorGrid = off
1344 YMinorTick = off
1345 YScale = linear
1346 YTick = [-1 -0.5 0 0.5 1]
1347 YTickLabel =
1348 -1
1349 -0.5
1350 0
1351 0.5
1352 1
1353 YTickLabelMode = auto
1354 YTickMode = auto
1355 ZColor = [0 0 0]
1356 ZDir = normal
1357 ZGrid = off
1358 ZLabel = [325.001]
1359 ZLim = [-1 1]
1360 ZLimMode = auto
1361 ZMinorGrid = off
1362 ZMinorTick = off
1363 ZScale = linear
1364 ZTick = [-1 0 1]
1365 ZTickLabel =
1366 ZTickLabelMode = auto
1367 ZTickMode = auto
1368
1369 BeingDeleted = off
1370 ButtonDownFcn =
1371 Children = [ (3 by 1) double array]
1372 Clipping = on
1373 CreateFcn =
1374 DeleteFcn =
1375 BusyAction = queue
1376 HandleVisibility = on
1377 HitTest = on
1378 Interruptible = on
1379 Parent = [1]
1380 Selected = off
1381 SelectionHighlight = on
1382 Tag =
1383 Type = axes
1384 UIContextMenu = []
1385 UserData = []
1386 Visible = on
1387
1388
1389 set(gca, 'XTick', [-10, 50])
1390 set(gca, 'XLim', [-10, 50])
1391 get(gca)
1392 ActivePositionProperty = outerposition
1393 ALim = [0 1]
1394 ALimMode = auto
1395 AmbientLightColor = [1 1 1]
1396 Box = on
1397 CameraPosition = [20 0 17.3205]
1398 CameraPositionMode = auto
1399 CameraTarget = [20 0 0]
1400 CameraTargetMode = auto
1401 CameraUpVector = [0 1 0]
1402 CameraUpVectorMode = auto
1403 CameraViewAngle = [6.60861]
1404 CameraViewAngleMode = auto
1405 CLim = [0 1]
1406 CLimMode = auto
1407 Color = [1 1 1]
1408 CurrentPoint = [ (2 by 3) double array]
1409 ColorOrder = [ (7 by 3) double array]
1410 DataAspectRatio = [30 1 1]
1411 DataAspectRatioMode = auto
1412 DrawMode = normal
1413 FontAngle = normal
1414 FontName = Helvetica
1415 FontSize = [10]
1416 FontUnits = points
1417 FontWeight = normal
1418 GridLineStyle = :
1419 Layer = bottom
1420 LineStyleOrder = -
1421 LineWidth = [0.5]
1422 MinorGridLineStyle = :
1423 NextPlot = add
1424 OuterPosition = [0 0 1 1]
1425 PlotBoxAspectRatio = [1 1 1]
1426 PlotBoxAspectRatioMode = auto
1427 Projection = orthographic
1428 Position = [0.13 0.135135 0.775 0.783784]
1429 TickLength = [0.01 0.025]
1430 TickDir = in
1431 TickDirMode = auto
1432 TightInset = [0.0747423 0.135135 0.0206186 0.0810811]
1433 Title = [322.001]
1434 Units = normalized
1435 View = [0 90]
1436 XColor = [0 0 0]
1437 XDir = normal
1438 XGrid = off
1439 XLabel = [323.001]
1440 XAxisLocation = bottom
1441 XLim = [-10 50]
1442 XLimMode = manual
1443 XMinorGrid = off
1444 XMinorTick = off
1445 XScale = linear
1446 XTick = [-10 50]
1447 XTickLabel =
1448 -10
1449 50
1450 XTickLabelMode = auto
1451 XTickMode = manual
1452 YColor = [0 0 0]
1453 YDir = normal
1454 YGrid = off
1455 YLabel = [324.001]
1456 YAxisLocation = left
1457 YLim = [-1 1]
1458 YLimMode = auto
1459 YMinorGrid = off
1460 YMinorTick = off
1461 YScale = linear
1462 YTick = [-1 -0.5 0 0.5 1]
1463 YTickLabel =
1464 -1
1465 -0.5
1466 0
1467 0.5
1468 1
1469 YTickLabelMode = auto
1470 YTickMode = auto
1471 ZColor = [0 0 0]
1472 ZDir = normal
1473 ZGrid = off
1474 ZLabel = [325.001]
1475 ZLim = [-1 1]
1476 ZLimMode = auto
1477 ZMinorGrid = off
1478 ZMinorTick = off
1479 ZScale = linear
1480 ZTick = [-1 0 1]
1481 ZTickLabel =
1482 ZTickLabelMode = auto
1483 ZTickMode = auto
1484
1485 BeingDeleted = off
1486 ButtonDownFcn =
1487 Children = [ (3 by 1) double array]
1488 Clipping = on
1489 CreateFcn =
1490 DeleteFcn =
1491 BusyAction = queue
1492 HandleVisibility = on
1493 HitTest = on
1494 Interruptible = on
1495 Parent = [1]
1496 Selected = off
1497 SelectionHighlight = on
1498 Tag =
1499 Type = axes
1500 UIContextMenu = []
1501 UserData = []
1502 Visible = on
1503
1504 get(gca, 'XTick')
1505
1506 ans =
1507
1508 -10 50
1509
1510 figure(2);
1511 h = plot(x, z, 'kd')
1512
1513 h =
1514
1515 319.0022
1516
1517 get(h)
1518 Color: [0 0 0]
1519 EraseMode: 'normal'
1520 LineStyle: 'none'
1521 LineWidth: 0.5000
1522 Marker: 'diamond'
1523 MarkerSize: 6
1524 MarkerEdgeColor: 'auto'
1525 MarkerFaceColor: 'none'
1526 XData: [1x100 double]
1527 YData: [1x100 double]
1528 ZData: [1x0 double]
1529 BeingDeleted: 'off'
1530 ButtonDownFcn: []
1531 Children: [0x1 double]
1532 Clipping: 'on'
1533 CreateFcn: []
1534 DeleteFcn: []
1535 BusyAction: 'queue'
1536 HandleVisibility: 'on'
1537 HitTest: 'on'
1538 Interruptible: 'on'
1539 Selected: 'off'
1540 SelectionHighlight: 'on'
1541 Tag: ''
1542 Type: 'line'
1543 UIContextMenu: []
1544 UserData: []
1545 Visible: 'on'
1546 Parent: 318.0011
1547 DisplayName: ''
1548 XDataMode: 'manual'
1549 XDataSource: ''
1550 YDataSource: ''
1551 ZDataSource: ''
1552
1553 set(h, 'LineWidth', 10)
1554 doc
1555 lookfor
1556 ??? Error using ==> lookfor
1557 Not enough input arguments.
1558
1559 lookfor 'Axes Properties'
1560 Axes Properties not found.
1561 help graph2d
1562 Two dimensional graphs.
1563
1564 Elementary X-Y graphs.
1565 plot - Linear plot.
1566 loglog - Log-log scale plot.
1567 semilogx - Semi-log scale plot.
1568 semilogy - Semi-log scale plot.
1569 polar - Polar coordinate plot.
1570 plotyy - Graphs with y tick labels on the left and right.
1571
1572 Axis control.
1573 axis - Control axis scaling and appearance.
1574 zoom - Zoom in and out on a 2-D plot.
1575 grid - Grid lines.
1576 box - Axis box.
1577 rbbox - Rubberband box.
1578 hold - Hold current graph.
1579 axes - Create axes in arbitrary positions.
1580 subplot - Create axes in tiled positions.
1581
1582 Graph annotation.
1583 plotedit - Tools for editing and annotating plots.
1584 title - Graph title.
1585 xlabel - X-axis label.
1586 ylabel - Y-axis label.
1587 texlabel - Produces the TeX format from a character string.
1588 text - Text annotation.
1589 gtext - Place text with mouse.
1590
1591 Hardcopy and printing.
1592 print - Print graph or Simulink system; or save graph to M-file.
1593 printopt - Printer defaults.
1594 orient - Set paper orientation.
1595
1596 See also GRAPH3D, SPECGRAPH.
1597
1598 help graph3d
1599 Three dimensional graphs.
1600
1601 Elementary 3-D plots.
1602 plot3 - Plot lines and points in 3-D space.
1603 mesh - 3-D mesh surface.
1604 surf - 3-D colored surface.
1605 fill3 - Filled 3-D polygons.
1606
1607 Color control.
1608 colormap - Color look-up table.
1609 caxis - Pseudocolor axis scaling.
1610 shading - Color shading mode.
1611 hidden - Mesh hidden line removal mode.
1612 brighten - Brighten or darken color map.
1613 colordef - Set color defaults.
1614 graymon - Set graphics defaults for gray-scale monitors.
1615
1616 Lighting.
1617 surfl - 3-D shaded surface with lighting.
1618 lighting - Lighting mode.
1619 material - Material reflectance mode.
1620 specular - Specular reflectance.
1621 diffuse - Diffuse reflectance.
1622 surfnorm - Surface normals.
1623
1624 Color maps.
1625 hsv - Hue-saturation-value color map.
1626 hot - Black-red-yellow-white color map.
1627 gray - Linear gray-scale color map.
1628 bone - Gray-scale with tinge of blue color map.
1629 copper - Linear copper-tone color map.
1630 pink - Pastel shades of pink color map.
1631 white - All white color map.
1632 flag - Alternating red, white, blue, and black color map.
1633 lines - Color map with the line colors.
1634 colorcube - Enhanced color-cube color map.
1635 vga - Windows colormap for 16 colors.
1636 jet - Variant of HSV.
1637 prism - Prism color map.
1638 cool - Shades of cyan and magenta color map.
1639 autumn - Shades of red and yellow color map.
1640 spring - Shades of magenta and yellow color map.
1641 winter - Shades of blue and green color map.
1642 summer - Shades of green and yellow color map.
1643
1644 Transparency.
1645 alpha - Transparency (alpha) mode.
1646 alphamap - Transparency (alpha) look-up table.
1647 alim - Transparency (alpha) scaling
1648
1649 Axis control.
1650 axis - Control axis scaling and appearance.
1651 zoom - Zoom in and out on a 2-D plot.
1652 grid - Grid lines.
1653 box - Axis box.
1654 hold - Hold current graph.
1655 axes - Create axes in arbitrary positions.
1656 subplot - Create axes in tiled positions.
1657 daspect - Data aspect ratio.
1658 pbaspect - Plot box aspect ratio.
1659 xlim - X limits.
1660 ylim - Y limits.
1661 zlim - Z limits.
1662
1663 Viewpoint control.
1664 view - 3-D graph viewpoint specification.
1665 viewmtx - View transformation matrix.
1666 rotate3d - Interactively rotate view of 3-D plot.
1667
1668 Camera control.
1669 campos - Camera position.
1670 camtarget - Camera target.
1671 camva - Camera view angle.
1672 camup - Camera up vector.
1673 camproj - Camera projection.
1674
1675 High level camera control.
1676 camorbit - Orbit camera.
1677 campan - Pan camera.
1678 camdolly - Dolly camera.
1679 camzoom - Zoom camera.
1680 camroll - Roll camera.
1681 camlookat - Move camera and target to view specified objects.
1682 cameratoolbar - Interactively manipulate camera.
1683
1684 High level light control.
1685 camlight - Creates or sets position of a light.
1686 lightangle - Spherical position of a light.
1687
1688 Graph annotation.
1689 title - Graph title.
1690 xlabel - X-axis label.
1691 ylabel - Y-axis label.
1692 zlabel - Z-axis label.
1693 text - Text annotation.
1694 gtext - Mouse placement of text.
1695 plotedit - Experimental graph editing and annotation tools.
1696
1697 Hardcopy and printing.
1698 print - Print graph or Simulink system; or save graph to M-file.
1699 printopt - Printer defaults.
1700 orient - Set paper orientation.
1701 vrml - Save graphics to VRML 2.0 file.
1702
1703 See also GRAPH2D, SPECGRAPH.
1704
1705 bar3(rand(3,3))
1706 help specgraph
1707 Specialized graphs.
1708
1709 Specialized 2-D graphs.
1710 area - Filled area plot.
1711 bar - Bar graph.
1712 barh - Horizontal bar graph.
1713 comet - Comet-like trajectory.
1714 compass - Compass plot.
1715 errorbar - Error bar plot.
1716 ezplot - Easy to use function plotter.
1717 ezpolar - Easy to use polar coordinate plotter.
1718 feather - Feather plot.
1719 fill - Filled 2-D polygons.
1720 fplot - Plot function.
1721 hist - Histogram.
1722 pareto - Pareto chart.
1723 pie - Pie chart.
1724 plotmatrix - Scatter plot matrix.
1725 rose - Angle histogram plot.
1726 scatter - Scatter plot.
1727 stem - Discrete sequence or "stem" plot.
1728 stairs - Stairstep plot.
1729
1730 Contour and 2-1/2 D graphs.
1731 contour - Contour plot.
1732 contourf - Filled contour plot.
1733 contour3 - 3-D Contour plot.
1734 clabel - Contour plot elevation labels.
1735 ezcontour - Easy to use contour plotter.
1736 ezcontourf - Easy to use filled contour plotter.
1737 pcolor - Pseudocolor (checkerboard) plot.
1738 voronoi - Voronoi diagram.
1739
1740 Specialized 3-D graphs.
1741 bar3 - 3-D bar graph.
1742 bar3h - Horizontal 3-D bar graph.
1743 comet3 - 3-D comet-like trajectories.
1744 ezgraph3 - General purpose surface plotter.
1745 ezmesh - Easy to use 3-D mesh plotter.
1746 ezmeshc - Easy to use combination mesh/contour plotter.
1747 ezplot3 - Easy to use 3-D parametric curve plotter.
1748 ezsurf - Easy to use 3-D colored surface plotter.
1749 ezsurfc - Easy to use combination surf/contour plotter.
1750 meshc - Combination mesh/contour plot.
1751 meshz - 3-D mesh with curtain.
1752 pie3 - 3-D pie chart.
1753 ribbon - Draw 2-D lines as ribbons in 3-D.
1754 scatter3 - 3-D scatter plot.
1755 stem3 - 3-D stem plot.
1756 surfc - Combination surf/contour plot.
1757 trisurf - Triangular surface plot.
1758 trimesh - Triangular mesh plot.
1759 waterfall - Waterfall plot.
1760
1761 Volume and vector visualization.
1762 vissuite - Visualization suite.
1763 isosurface - Isosurface extractor.
1764 isonormals - Isosurface normals.
1765 isocaps - Isosurface end caps.
1766 isocolors - Isosurface and patch colors.
1767 contourslice - Contours in slice planes.
1768 slice - Volumetric slice plot.
1769 streamline - Streamlines from 2D or 3D vector data.
1770 stream3 - 3D streamlines.
1771 stream2 - 2D streamlines.
1772 quiver3 - 3D quiver plot.
1773 quiver - 2D quiver plot.
1774 divergence - Divergence of a vector field.
1775 curl - Curl and angular velocity of a vector field.
1776 coneplot - 3D cone plot.
1777 streamtube - 3D stream tube.
1778 streamribbon - 3D stream ribbon.
1779 streamslice - Streamlines in slice planes.
1780 streamparticles - Display stream particles.
1781 interpstreamspeed - Interpolate streamline vertices from speed.
1782 subvolume - Extract subset of volume dataset.
1783 reducevolume - Reduce volume dataset.
1784 volumebounds - Returns x,y,z and color limits for volume data.
1785 smooth3 - Smooth 3D data.
1786 reducepatch - Reduce number of patch faces.
1787 shrinkfaces - Reduce size of patch faces.
1788
1789 Images display and file I/O.
1790 image - Display image.
1791 imagesc - Scale data and display as image.
1792 colormap - Color look-up table.
1793 gray - Linear gray-scale color map.
1794 contrast - Gray scale color map to enhance image contrast.
1795 brighten - Brighten or darken color map.
1796 colorbar - Display color bar (color scale).
1797 imread - Read image from graphics file.
1798 imwrite - Write image to graphics file.
1799 imfinfo - Information about graphics file.
1800 im2java - Convert image to Java image.
1801
1802 Movies and animation.
1803 getframe - Get movie frame.
1804 movie - Play recorded movie frames.
1805 rotate - Rotate object about specified orgin and direction.
1806 frame2im - Convert movie frame to indexed image.
1807 im2frame - Convert index image into movie format.
1808
1809 Color related functions.
1810 spinmap - Spin color map.
1811 rgbplot - Plot color map.
1812 colstyle - Parse color and style from string.
1813 ind2rgb - Convert indexed image to RGB image.
1814
1815 Solid modeling.
1816 cylinder - Generate cylinder.
1817 sphere - Generate sphere.
1818 ellipsoid - Generate ellipsoid.
1819 patch - Create patch.
1820 surf2patch - Convert surface data to patch data.
1821
1822 See also GRAPH2D, GRAPH3D.
1823
1824 A = rand(50,50);
1825 clf;
1826 imagesc(A)
1827 colorbar
1828 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.