type
status
date
slug
summary
tags
category
icon
password
一、STK 12.2 安装与激活
1️⃣ 准备
- 解压安装文件夹


- 进入解压后的文件夹,双击
STK_v12.2.0.zip
文件,右键解压到 STK_v12.2.0

- 进入解压后的 STK_v12.2.0 文件夹,双击
install.exe
,打开安装程序

2️⃣ 安装
- 进入安装界面,勾选全部选项,Help 栏选择 Install Desktop Help,方便离线看帮助文档,然后点击“Next”

- 勾选 STK Plugins 全部组件,点击“Install”

- 在弹出的窗口中,点击“Next”

- 接受许可协议,点击“Next”

- 自定义安装路径,不要出现中文,点击“Next”,之后点击“Install”开始安装


- 等待安装结束,点击“Finish”


- 等待主安装程序进行

- 运行 Graphics Test


- 等待测试结束,点击“Finish”,至此 STK 基础部分已安装完毕

3️⃣ 安装 Matlab Connector
- 找到最初文件夹目录下的
Matlab_v1.0.16.zip
文件,右键解压到 Matlab_v1.0.16

- 进入解压后的 Matlab_v1.0.16 文件夹,双击
setup.exe
,打开安装程序


- 弹出窗口点击“Next”

- 接受许可协议,点击“Next”

- 自定义安装路径,不要出现中文,点击“Next”,之后点击“Install”开始安装


- 等待安装结束,点击“Finish”

4️⃣ 激活
- 找到最初文件夹目录下的
STK-12.20-crk.zip
文件,右键解压到 STK-12.20-crk

- 进入解压后的 STK-12.20-crk 文件夹
- 将
AgLicVbInterface.dll
文件复制到C:\Program Files (x86)\AGI\LicenseManager\bin
,粘贴并替换原文件; - 将
STK_1220.lic
文件复制到C:\ProgramData\AGI\LicenseData
(注意:C:\ProgramData
为隐藏目录); - 将
bin
目录下所有文件复制到C:\Program Files\AGI\STK 12\bin
,粘贴并替换原文件(注意:此处为默认安装目录,如自定义了安装目录请选择粘贴到对应安装目录下,例如我的为D:\STK12.2\bin
)

- 首次运行STK时,询问默认存盘目录,建议不要使用默认目录,改为类似“E:\STK_12”;是否使用在线资源建议选择“不使用在线”
二、Matlab R2020b 安装与激活
1️⃣ 准备
- 选中全部 10 个压缩包,右键“解压到当前文件夹”


- 进入解压后的文件夹,双击
R2020b_Windows.iso
文件,自动装载( Win7 系统需要先解压该 iso 文件)

- 进入装载后的文件夹,双击
setup.exe
,打开安装程序

2️⃣ 安装
- 进入安装界面,选择右上角“高级选项”中的“我有文件安装密钥”,点击“下一步”

- 选择“是”接受许可协议,点击“下一步”

- 输入文件安装密钥:
09806-07443-53955-64350-21751-41297
,点击“下一步”

- 点击“浏览”,打开
Crack
文件夹内的license_standalone.lic
文件,点击“下一步”

- 点击“浏览”,自定义安装目录,点击“下一步”

- 选择需安装的产品(选择全部产品需要 30GB 左右的空间),点击下一步

- 添加快捷方式,点击“下一步”,点击“开始安装”


- 等待安装完毕后,点击“关闭”,暂时不要打开程序


3️⃣ 激活
- 找到最初文件夹目录下的
Crack
文件夹下的libmwlmgrimpl.dll
文件并复制

- 粘贴
libmwlmgrimpl.dll
文件到 Matlab 安装目录下(这里以我的安装目录为例)D:\Matlab\R2020b\bin\win64\matlab_startup_plugins\lmgrimpl
文件夹内并替换原文件

- 找到最初文件夹目录下的
Crack
文件夹下的license.lic
文件并复制

- 粘贴
license.lic
文件到 Matlab 安装目录下(这里以我的安装目录为例)D:\Matlab\R2020b\licenses
文件夹内

4️⃣ 启动
- 找到安装目录下
D:\Matlab\R2020b\bin
文件夹内的启动程序,发送到“桌面快捷方式”,双击即可启动软件


三、解决 STK 12.2 和 MATLAB R2020b 互联问题
1️⃣ 查看互联状态
- 打开STK,点击左上角 “Edit - Preferences - MATLAB”

- 如下图所示,未显示 R2020b 版本的 MATLAB,说明未成功互联

2️⃣ 修改 Matlab 注册表
- 桌面
Ctrl + R
键打开“运行”窗口,输入regedit
打开“注册表编辑器”

- 路径栏粘贴:
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks
,回车定位到MathWorks
文件夹

MathWorks
文件夹右键新建“项”,命名为MATLAB

MATLAB
文件夹右键新建“项”,命名为9.9
(R2020b 对应的版本号为 9.9),在 9.9 项右侧空白处新建“字符串值”,“数值名称”为MATLABROOT
,双击数值名称设置“数值数据”为 MATLAB 安装路径,例如D:\Matlab\R2020b
,路径精确到有bin
文件夹的那一页

- 保存、关闭注册表,重启计算机后打开STK,会弹出
Refresh MATLAB Path
窗口,如下图

- 待 Refresh 完毕后打开“Edit - Preferences - MATLAB”,显示如下图,说明 MATLAB R2020b 与 STK 12.2 成功互联

- 保持 STK 处于打开状态,打开 Matlab,在命令行窗口输入
stkInit
,输出如下图所示,说明互联成功

完结撒花🎉🎉🎉
- 作者:Aseity
- 链接:https://aseity.me/article/matlab-r2020b-stk-12.2
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。