Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic Matlab Matrix definition a=[1,2 ; 3,4] => a=

Similar presentations


Presentation on theme: "Basic Matlab Matrix definition a=[1,2 ; 3,4] => a="— Presentation transcript:

1 Basic Matlab Matrix definition a=[1,2 ; 3,4] => a= 1 2 3 4
Vector is a matrix with one column or one row. a=[1;2;3;4;5 …;…;… ] one column b=[1,2,3,4,5,6 …,…,..] one row

2 Basic Matlab Example a=[1,2,3,4,5]; b=[a;a;a] b= 1 2 3 4 5 1 2 3 4 5
Example (transpose) a=[1;2;3;4;5]; b=a’ b=

3 Basic Matlab Strings a=[‘a’,’b’,’c’] a= abc Strings a=[‘a’,’b’,’c’]
b=[a;a;a] b= abc abc Strings a=[‘a’,’b’,’c’] a= abc b=[a,a,a] b= abcabcabc Strings a=[‘a’,’b’,’c’] b=[‘a’,’c’,’c’] c=(a==b); c= 1 0 1

4 Basic Matlab

5 Basic Matlab A=zeros(a1, a2, a3,… an);
A is an n dimensional matrix of zeros. A=ones(a1, a2, a3,… an); A is an n dimensional matrix of ones. size(A) return the size of A at each diminution. size(A,Dim) return the size of A at the diminution Dim.

6 Basic Matlab A(m,n) returns the value of the matrix in row-m and column-n. b=A(1:end,1) : b will be equal to column 1 of A b=A(5:10,5:10) : b will a-6x6 matrix containing all values of A from rows 5-10 and columns 5-10.

7 Basic Matlab Functions in Matlab
function [output variables]=function_name (input variables) Input and output variables, can be of any type.

8 Basic Matlab Functions in Matlab
function [out_1,out_2,out_3] = Function_Dec (in_1,in_2,in_3) out_1=in_1+in_2+in_3; out_2=[ 'hello' ; 'world' ]; out_3=[1,2,3,4,5]; return;

9 Basic Matlab Functions in Matlab
input: » [a,b,c]=Function_dec(5,3,2) output: a = 10 b = hello world c = input: » [a,b,c]=Function_dec([1,2,3],[6,5,4],[3,4,5]) output: a = b = hello world c =

10 Variables must be integers
Basic Matlab Bit-wise operations Variables must be integers BITAND (a,b) Bit-wise AND. BITOR (a,b) Bit-wise OR. BITXOR (a,b) Bit-wise XOR. BITGET (a,bit-num) Get bit. BITSET (a,bit-num,1/0) Set bit. BITSHIFT (a,+/- shift_size) Bit-wise shift.

11 Basic Matlab conditions
If ( Boolean expression) . end; Boolean expression == : Is Equal ~=: Not Equal > : Is grater then < : Is less Then >=: Is grater then or equal to <=: Is less then or equal to

12 Basic Matlab conditions
switch switch_expr case case_expr, statement, ..., statement case {case_expr1, case_expr2, case_expr3,...} ... otherwise, end

13 Basic Matlab Loops for j=start:step:end . end; example: for j=-1:0.2:3
while Boolean expression, . end; example: while a>b, break - Terminate execution of WHILE or FOR loop. break terminates the execution of FOR and WHILE loops. In nested loops, BREAK exits from the innermost loop only.

14 Basic Matlab Drawing plot(X,Y) plots vector Y versus vector X
y yellow point solid m magenta o circle : dotted c cyan x x-mark dashdot r red plus dashed g green * star b blue s square w white d diamond k black v triangle (down) ^ triangle (up) < triangle (left) > triangle (right) p pentagram h hexagram

15 Basic Matlab Drawing Drawing a circle t=0:0.1:2*pi;
x=10*cos(t); y=10*sin(t); plot (x,y); Drawing a doted circle. t=0:0.1:2*pi; x=10*cos(t); y=10*sin(t); plot (x,y,’.’);

16 Basic Matlab Drawing ezplot(‘x^2+y^2=1’); ezplot(‘x^2/5+y^2/20=1’);

17 Basic Matlab Drawing a=0:0.2:2*pi; b=ones(1,length(a)); c=sin(a'*b);
figure; subplot(1,2,1); surf(c);

18 Basic Matlab Drawing figure; t=0:0.1:2*pi+0.1; b=ones(1,length(t));
z=b'*(1:1:length(t)); x=(10*sin(z)+15).*sin(t'*b); y=(10*sin(z)+15).*cos(t'*b); surf(x,y,z);

19 Basic Matlab Some useful commands
figure -open new figure. drawnow -draw to screen immediately. hold on -draw the next draw to the same figure and axes. ’ -Transpose % - remark help command- return the help information on the command. lookfor Word - return a list of all commands that have the desired word in their help.

20 Adding a path to a library
Basic Matlab Adding a path to a library 1 3 4 2

21 Adding a path to a library
8 5 6 7

22 Adding a path to a library
Basic Matlab Adding a path to a library 9 10

23 Building GUI’s with MATLAB
Oren Meirom Omikron Delta 1

24 What is a Callback? A callback is a sequence of commands which are implemented by activating a graphics object: e.g. CreateFcn, CallBack, ButtonDownFcn, DeleteFcn.

25 The 10 styles of Matlab Uicontrol objects
Push Button. Toggle Button. Check Box. Radio Button. Editable Text. List Box. Pop-up Menu. Slider. Frame. Static Text Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them.

26 Push/Toggle Buttons The push button is widely prevalent uicontrol style that is used primarily to indicate that a desired action should immediately take place. The toggle button look just like push button, except there is no intermediate state.Rather, the button will remain in its selected or not selected state after the user clicks on it. >>mcpush Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them.

27 Check Box Useful for representing two states of an option that you may want to provide (usually as on and off). In its ‘off’ state the check box will consist of an empty or unfilled square. In the ‘on’ state, the check box’s square will contain a ‘V’ sign. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mccheckbox,mccheckbox1

28 Radio Button Similar to the check box in that there are two states associated with each other. Usually two or more radio buttons are linked together as a group.They are linked in the sense that only one of the buttons will be in its selected state. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mcradiox

29 Editable Text Used in situations that require the user to enter strings or characters or numbers. The strings , in turn, are used by the application for which the interface has been built. Clicking anywhere within this object will change the mouse from a pointer to a text insertion indicator. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mcedit, mceditf

30 List Boxes New style provided by MATLAB 5.x
Very similar to pop-up menus. The main difference with a list box is that you can make the set of options visible to the user at all times. >>mccheckbox Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mclistbox

31 Pop-up Menus Used in situations where multiple choices need to be available to the user. When the user clicks and holds the mouse button anywhere within the object, a list of choices appear. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mcpopup

32 Sliders Useful in representing a fixed range of values from which to choose. The slider has no way of explicitly indicating the numeric value that the slider represents. Therefor, it is recommended that an editable text or static text style uicontrol accompany the slider. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them. >>mcslider, mcslider2

33 Frames Provide a solid background that helps blend a set of uicontrols into one complete and cohesive interface. Used as an effective method of organizing the GUI in a logical and intuitive fashion. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them.

34 Static Text Available for creating labels, status messages or other information pertinent to the user. Static text does not perform any action if the user clicks on any part of the object. In addition , the user can not edit the information that is displayed. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them.

35 Properties that Track User Actions
ButtonDownFcn- When clicking the mouse button while the pointer is located over or near the object. WindowButtonDownFcn- When clicking the mouse button down within the figure boundaries. WindowButtonUpFcn- When clicking the mouse button up within the figure boundaries. WindowButtonMotionFcn- When the mouse pointer moves within the figure boundaries. KeyboardFcn- When the figure is active. CreatFcn- When creating an object. DeleteFcn- When deleting an object. ResizeFcn- When resizing the figure. Callbacks should be short and call functions When MATLAB evals a string, it must interpret it statement by statement. MATLAB must do the same with a script M-file. It behaves differently with a function: the first time MATLAB encounters the function, it compiles it. MATLAB does not re-interpret the function on subsequent calls. Thus of the three possibilities (function M-file, script M-file, and long string), making the callback a function M-file is by far the fastest, especially if the callback is long.. Drawing settings Draw movable or changing objects with the 'EraseMode' property set to 'xor' or 'background'. This prevents re-rendering the axes when changing these objects. 'EraseMode' is a property of all objects which are children of axes (line, text, surface, image, patch). Set 'DrawMode' (an axes property) to 'fast'. This prevents MATLAB from sorting 3D objects, which can speed things up significantly. The side-effect is that 3D surface plots will not work in this mode. Set 'BackingStore' (a figure property) to 'off'. This should give roughly a factor of two speed-up in normal drawing but turns off the instantaneous update that normally occurs when windows are uncovered. Set 'NextPlot' (a figure property) to 'new' when creating a GUI. That way when you make plots from the command window they don't appear in the axes of the GUI's figure window. Wherever possible, recycle figure windows by using the 'visible' property of figures instead of creating and destroying them. When done with the window, set 'visible' to 'off'; when you need the window again, make any changes to the window and THEN set 'visible' to 'on'. Creating figure windows involves much more overhead than un-hiding them.

36 Some useful instructions.
AXES(axes_handle) - make the axes, current. Object_H=GCBO to get the object that make the callback. RBUTTON(Radio_H) - use to select and deselect radio buttons with the same Tag Name This manual has covered a lot of information in a very brief period. The following list of references go into more detail on the topics covered here: Suggested References Title: Tog on Interface Author: Tognazzini, B. Publisher: Addison-Wesley ISBN: List Price: $29.95 Title: Secrets of Effective GUI Design Author: Mark Minasi Publisher: SYBEX Inc. ISBN: List Price: $19.99 Title: Developing User Interfaces / Ensuring Usability Through Product and Process Author: Hix and Hartson Publisher: John Wiley & Sons Inc. ISBN: List Price: $34.95 Title: Windows Interface, An Application Design Author: Microsoft Publisher: Microsoft Press ISBN: List Price: $39.95 Title: Design of Everyday Things Author: Donald A Norman Publisher: Doubleday & Delacorte Press ISBN: List Price: $15.00 Title: Designing User Interfaces Author: Powell Publisher: ISBN: List Price:

37 Setting figure. h0 = figure('Color',[0.8 0.8 0.8], ...
'Units','Normal', ... 'Position',[ ], ... 'Tag','Fig1'); %Setting figure name set(h0,'Name','Check and radio'); This manual has covered a lot of information in a very brief period. The following list of references go into more detail on the topics covered here: Suggested References Title: Tog on Interface Author: Tognazzini, B. Publisher: Addison-Wesley ISBN: List Price: $29.95 Title: Secrets of Effective GUI Design Author: Mark Minasi Publisher: SYBEX Inc. ISBN: List Price: $19.99 Title: Developing User Interfaces / Ensuring Usability Through Product and Process Author: Hix and Hartson Publisher: John Wiley & Sons Inc. ISBN: List Price: $34.95 Title: Windows Interface, An Application Design Author: Microsoft Publisher: Microsoft Press ISBN: List Price: $39.95 Title: Design of Everyday Things Author: Donald A Norman Publisher: Doubleday & Delacorte Press ISBN: List Price: $15.00 Title: Designing User Interfaces Author: Powell Publisher: ISBN: List Price:

38 Setting Push Button. h1 =uicontrol ('Parent',h0, 'Units','Normal','Position',[ ] ,'Tag','Pushbutton1'); %Setting the callBack Function set(h1,'Callback','Button_1_callBack_Function'); %Setting the string on the button set(h1,'String','Push.B_1'); %Setting Tool Tip String set(h1,'TooltipString','Push Me To Call The CallBack Function!'); %Setting The Text Color on the button (the foreground color) set(h1,'ForegroundColor',[0.0,.0,0.0]); %setting the background color set(h1,'BackgroundColor',[0.0,1.0,0.0]); This manual has covered a lot of information in a very brief period. The following list of references go into more detail on the topics covered here: Suggested References Title: Tog on Interface Author: Tognazzini, B. Publisher: Addison-Wesley ISBN: List Price: $29.95 Title: Secrets of Effective GUI Design Author: Mark Minasi Publisher: SYBEX Inc. ISBN: List Price: $19.99 Title: Developing User Interfaces / Ensuring Usability Through Product and Process Author: Hix and Hartson Publisher: John Wiley & Sons Inc. ISBN: List Price: $34.95 Title: Windows Interface, An Application Design Author: Microsoft Publisher: Microsoft Press ISBN: List Price: $39.95 Title: Design of Everyday Things Author: Donald A Norman Publisher: Doubleday & Delacorte Press ISBN: List Price: $15.00 Title: Designing User Interfaces Author: Powell Publisher: ISBN: List Price:

39 Edit - Box call back function.
EditBox_H=GCBO; EditBoxString=get (EditBox_H,'String') This manual has covered a lot of information in a very brief period. The following list of references go into more detail on the topics covered here: Suggested References Title: Tog on Interface Author: Tognazzini, B. Publisher: Addison-Wesley ISBN: List Price: $29.95 Title: Secrets of Effective GUI Design Author: Mark Minasi Publisher: SYBEX Inc. ISBN: List Price: $19.99 Title: Developing User Interfaces / Ensuring Usability Through Product and Process Author: Hix and Hartson Publisher: John Wiley & Sons Inc. ISBN: List Price: $34.95 Title: Windows Interface, An Application Design Author: Microsoft Publisher: Microsoft Press ISBN: List Price: $39.95 Title: Design of Everyday Things Author: Donald A Norman Publisher: Doubleday & Delacorte Press ISBN: List Price: $15.00 Title: Designing User Interfaces Author: Powell Publisher: ISBN: List Price:


Download ppt "Basic Matlab Matrix definition a=[1,2 ; 3,4] => a="

Similar presentations


Ads by Google