STK10与Matlab互联(STK10 破解).docx_第1页
STK10与Matlab互联(STK10 破解).docx_第2页
STK10与Matlab互联(STK10 破解).docx_第3页
STK10与Matlab互联(STK10 破解).docx_第4页
STK10与Matlab互联(STK10 破解).docx_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

QQ:2335298917由于STK10以后,STK10与matlab互联需要安装connector,网站上只有32bit版本,因此将32bit connector下载下来并安装。网站介绍如下:MATLABConnectors Setup and InstallationMATLAB Interface setupStarting with STK 10, connectors are required to run AGI M-files and MEX files. STK MATLAB connectors simplify the setup of the MATLAB Interface by automatically configuring the MATLAB file path for a specific MATLAB version. For each supported version of MATLAB, AGI produces a connector, which can be downloaded from the link below: 32-bit connectorInstallation instructionsfor the MATLAB Connectors.Supported MATLAB versionsThe following versions of MATLAB are supported in STK 10: 2008a,2010a, 2010b, 2011a, 2011b, 2012a, 2012b, 2013a.由于支持的matlab版本原因,我选择了matlab2011b32bit进行连接。安装顺序,先安装matlab2011b,再安装STK10,最后安装connector。STK10与matlab互连的设置步骤1) 将“STK安装目录binMatlab”文件夹中的“agiCleanPath.m”、“agiInit.m”、“stkInit.m”复制到“Matlab安装目录toolboxlocal”文件夹中;2) 启动matlab和stk,将matlab当前目录设为“STK安装目录binMatlab”,在matlab中运行指令“stkInit”。3) 显示如下: stkInitSTK MATLAB Interface: Loaded API at d:Program Files (x86)MATLABR2011bbinwin32.Warning: mexConnect: Connecting to localhost:5001这样,matlab与STK10就连接好了,可以在matlab中进行各种命令的发送和设置,stk10会有相应的动作。以STK在计算机仿真中的应用第21章的例子为例,运行结果如下:将例子代码和文件放到D盘根目录下,并把D盘根目录加入matlab的path中,在matlab中运行STKTest,结果如下: STKTestCreate a new scenarioSet scenario time periodCreate a leidazhan1Create a hangfangleida1 radarCreate a leidazhan2Create a haifangleida2 radarCreate a new missleans =double Compute the local horizontal-referenced elevation angle . Compute a long range air intercept missile trajectory. Create an external state file and tell STK to load it.图形如下:STK10场景如下:QQ:2335298917附录:MATLAB Interface to STK Setup GuideThis guide provides instructions for setting up the interface between MATLAB and STK 10.Prerequisites A supported version of MATLAB installed (C/matlabfor a list of MATLAB versions supported by STK 10.) STK 10 installed STK Integration license A valid STK-MATLAB configuration. For diagrams of valid 32-bit and 64-bit configurations of MATLAB and STK,click here.Installing an STK MATLAB ConnectorThe STK MATLAB Connector is the interface that enables communication between MATLAB and STK.To install the connector:1. Browse to the MATLAB_Connectors or MATLAB_Connectors_X64 folder on the STK DVD, click on setup.exe and follow the install instructions. (You can also download the latest MATLAB Connector setup.exe /matlab.)2. To confirm that the installed version of MATLAB is connectable, start STK, go to the Edit menu and select Preferences-MATLAB.The MATLAB file path is automatically configured to find AGI M-files and MEX files. If you need to reset the MATLAB file path, clickRefresh MATLAB Path. (You can also reset the MATLAB file path by selectingRefresh MATLAB Path (32-bit)from the Start-All Programs- STK Support Tools menu.)Installing a Connector for a New MATLAB Version1. Before installing a connector for a new MATLAB version, /matlabto confirm that the new version of MATLAB is supported and a connector exists for that version.2. Run the latest MATLAB Connector install to ensure that the updated connector is available.3. Install the new version of MATLAB.4. To confirm that the installed version of MATLAB is connectable, start STK, go to the Edit menu, and select Preferences-MATLAB.5. Using the STK Preferences MATLAB page, you can only connect to the most recent version of MATLAB installed. SeeConnecting to a Different Version of MATLABto change the version you are connected to.6. If needed, clickRefresh MATLAB Pathto reset the MATLAB file path.Connecting to a Different Version of MATLABIf you have more than one version of MATLAB installed and you would like to connect to the version installed prior to the last one installed, perform the following steps in MATLAB:1. Run “matlab /regserver” from the command prompt, with administrator privileges, from the bin folder of the version of MATLAB you want to use. You may need to use the c option to specify a different MATLAB license file if the administrator is not licensed to run MATLAB.2. Make sure you have the connectors installed for the version of MATLAB you want to run.3. Browse to the MATLAB_Connectors or MATLAB_Connectors_X64 folder on the STK DVD, click on setup.exe and follow the install instructions. (You can also download the latest MATLAB Connector setup.exe /matlab.)4. To confirm that the chosen version of MATLAB is connectable, start STK and go to the Edit menu, and select Preferences-MATLAB.5. If needed, clickRefresh MATLAB Pathto reset the MATLAB file path.Uninstalling a MATLAB VersionIf the uninstalled MATLAB version was registered as the automation server and you have another version of MATLAB still installed on the computer where STK resides, follow the steps inConnecting to a Different Version of MATLAB.Troubleshooting the STK MATLAB InterfaceEdit Menu-Preferences-MATLAB does not show an Installed Version of MATLABCheck the following: Run the MATLAB Connector Refresh utility by going to Edit Menu-Preferences-MATLAB in STK and clickingRefresh MATLAB Path, or by selectingRefresh MATLAB Path (32-bit)from the Start-All Programs- STK Support Tools menu. If that does not enable the connector, /matlabfor the latest STK MATLAB Connector install. If it is supported, download and follow the install instructions. Start STK and check Edit Menu-Preferences-MATLAB. If it is not supported, .AGI MEX and/or MFiles are not found by MATLABIf you alter the MATLAB search path and then save the change, the AGI MEX and MFiles may be removed from the search path. To restore the MATLAB search path to include the AGI MEX and MFiles, run the Connector Refresh utility.Compatibility Issue with Multiple Versions of STK and/or MATLABChanges made to the system path enabling STK 9 and MATLAB to work together may cause STK 10 to become incompatible with other versions of MATLAB. To correct this issue for STK 10, back out all changes made to the system path for the STK 9 and MATLAB interface. Cif this does not solve your MATLAB compatibility issue.Refresh MATLAB Path Tool Technical NotesThe Refresh MATLAB Path tool adds the default MATLAB user area, the location of the AGI MEX files, and location of the AGI M-files to the AGI:defaultuserworkfolder preference. This preference is overwritten each time you clickRefresh MATLAB Path. If you override the default user area provided by MATLAB, you must set the AGI:userworkfolder preference.The AGI-provided startup.m file is automatically executed each time MATLAB starts. The startup.m file extracts preferences configured by the Refresh MATLAB Path tool to add the STK MEX file folders and user work folder to the path.If you use your own startup.m file, you should rename your startup.m file an

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论