MATLAB MATRIX LABORATORY - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

MATLAB MATRIX LABORATORY

Description:

?''? ?????? ????????. ????? ???????? ?????? ???? ???'? (2) ????? ??' 3. 12/15/09 ... Slider.Recalculate() End Sub. How It Appears in the Worksheet. Script. 12/15/09 ... – PowerPoint PPT presentation

Number of Views:124
Avg rating:3.0/5.0
Slides: 23
Provided by: cent203
Category:

less

Transcript and Presenter's Notes

Title: MATLAB MATRIX LABORATORY


1
????? ???????? ?????? ???? ???"? (2)
????? ??' 3
??? ?''? ?????? ????????
2
??? ????? controls
????? ?????? ???? ??
  • ??? ????? ?????? ???????? controls tool
  • ????? - slider
  • ????? ????? listbox
  • ????? ???? - textbox
  • ????????? - BUTTON

3
????? ???? ??????? ?????
Main Menu
Controls Toolbar
Controls Pop-up Menu
4
????? ?????? ?????
  • Controls Toolbar
  • ???? ????? (check box)
  • ????? ????? (radio
    button)
  • (push button)
    ?????-?????
  • (slider) ?????
  • ???? ???? text box))
  • (List Box ??? ????? (

5
????? slider -
Script
Modified Script Sub SliderEvent_Start()   Slider.
MinRange 10   Slider.MaxRange
10   Slider.TickFrequency 1   Slider.Point
2End Sub Sub SliderEvent_Exec(Inputs,Outputs)   
Outputs(0).Value Slider.Position/2End Sub Sub
SliderEvent_Stop()   Rem TODO Add your code
hereEnd Sub Sub Slider_ValueChanged()   Slider.R
ecalculate()End Sub How It Appears in the
Worksheet                                         
        
6
????? slider (????)
Right Click -gt Edit Script ???? 1
????? ????
7
????? slider (????2)
Right Click -gt Mathsoft Slider Control Object gt
Properties ???? 2
Properties Dialog Box If you would like to change
the appearance of a slider without using the
script, you can use the Properties Dialog box by
right-clicking on the control and selecting
Mathsoft Slider Control Object gt Properties from
the popup menu.                           
????? ????
8
????? - slider (????3)
????? ????? ???? ???????
9
????? -slider (????4)
????? 2 ????? ?????? ???????
Solidbar in Plot-formatting
10
????? ????? List Box . ??? WEB
????? ??? ??????
List Box (????? ?????)
11
????? ????? Listbox (????)
????? ??? ?????? (????)
12
????? ???? Textbox
????? ????? ?????
13
????? ???? Textbox (????)
????? ????? ?????
14
????? ???????????
????? ?????? ???? ??
  • 1 ?????? ??????? ???????????
  • 2 ??????? maximize
  • 3 ????? ????

15
??????????? ???? ?????
??????? ????
  • ??????

16
??????????? ???? ????? (????)
????? ????? ????? ??? ???? ??????? ?????? ???
????? ?? ???? ?????? ?????? ????? ?? ??????? A
(???) ?-B (????). ????? ???? ???????? - kg6
???? A ?- kg8 ???? B. ????? ????? ??? 1, ?- 1kg
?????? kg0.1 ?? A ?-0.2 ?? B. ????? ????? ??? 2
?- 1kg ?????? kg0.2 ?? A ?-0.2 ?? B. ????? ???
????? ?? 1kg ?? ????? ???? 1 ??? 300 ?''? ????? 2
??? 500 ?''?. ?????? ????? ????? ??? 1 ?? ????
?-kg2. ?? ??? ?????? ????? ????? ??????
?????????
17
??????????? ???? ????? (????2)
??? ???? ????? ????? Maximize Maximize(f,
var1, var2, ...) var1, var2,... are scalar
variables found in the
system of equations f is a
function defined above the solve
block. The function is supplied
without its arguments to Maximize
18
??????????? ???? ????? (????3)
???????
19
??????????? ???? ????? (????4)
????? ???? ?' ???? ????? ????? ????? ??? ????? ?-
SLIDER ???? ???? ????? ????? B ?' ?? ??? ?? ?????
?????? ??? ????? ????? ?? ???? B
20
???? ???? - button
Script
Default Script Dim state Sub PushBtnEvent_Start()
   Rem TODO Add your code hereEnd Sub Sub
PushBtnEvent_Exec(Inputs,Outputs)   Outputs(0).va
lue stateEnd Sub Sub PushBtnEvent_Stop()   Rem
TODO Add your code hereEnd Sub Sub
PushBtn_Click()   If state 0 Then      state
1   Else      state 0   End
If   PushBtn.Recalculate()End Sub How It
Appears in the Worksheet                        
      
21
???? ???? - button (????)
Right Click gt Mathsoft Slider Control Object gt
Properties
????? ?????
????? ???? ?????
22
???? ???? button (????2)
Right Click Edit Script
????? ???? ?????
Write a Comment
User Comments (0)
About PowerShow.com