⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbmatsimulink.frm

📁 VB和Matlab/Simulink的接口方法
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   6855
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9240
   LinkTopic       =   "Form1"
   ScaleHeight     =   6855
   ScaleWidth      =   9240
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text2 
      Height          =   1815
      Left            =   4560
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   3
      Top             =   840
      Width           =   3975
   End
   Begin VB.TextBox Text1 
      Height          =   1815
      Left            =   360
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   2
      Top             =   840
      Width           =   3855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "运行"
      Height          =   495
      Left            =   2400
      TabIndex        =   1
      Top             =   3120
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "保存为M文件"
      Height          =   495
      Left            =   480
      TabIndex        =   0
      Top             =   3120
      Width           =   1455
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "图像"
      Height          =   180
      Left            =   4080
      TabIndex        =   6
      Top             =   2880
      Width           =   360
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "运行结果"
      Height          =   180
      Left            =   4560
      TabIndex        =   5
      Top             =   480
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请输入命令"
      Height          =   180
      Left            =   480
      TabIndex        =   4
      Top             =   480
      Width           =   900
   End
   Begin VB.Image Image1 
      Height          =   3375
      Left            =   4080
      Top             =   3240
      Width           =   5055
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim result As String
Dim Matlab As Object
Set Matlab = CreateObject("Matlab.Application")

Private Sub Command1_Click()
Matlab.execute (save "Text1")
End Sub

Private Sub Command2_Click()
Text2.Text = Matlab.execute("Test1")
result = Matlab.execute("print-dbitmap")
Imagel.Picture = Clipboard.GetData
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -