資源描述:
《用c#調(diào)用matlab函數(shù)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、用C#調(diào)用MATLAB函數(shù)編譯環(huán)境:MicrosoftVisualStudio2008版本9.0.21022.8RTMMicrosoft.NETFramework版本3.5已安裝的版本:ProfessionalMicrosoftVisualBasic200891986-031-5000002-60050MicrosoftVisualBasic2008MicrosoftVisualC#200891986-031-5000002-60050MicrosoftVisualC#2008MicrosoftVisu
2、alC++200891986-031-5000002-60050MicrosoftVisualC++2008MicrosoftVisualStudio2008ToolsforOffice91986-031-5000002-60050MicrosoftVisualStudio2008ToolsforOfficeMicrosoftVisualWebDeveloper200891986-031-5000002-60050MicrosoftVisualWebDeveloper2008CrystalReports
3、AAJ6G-K0MSA4K-680002ZCrystalReportsBasicforVisualStudio2008Matlab2008b首先需要做的工作是matlab編譯器的設(shè)置,設(shè)置方法為:在Commandwindow中輸入mbuild-setup顯示如下>>mbuild-setupPleasechooseyourcompilerforbuildingstandaloneMATLABapplications:Wouldyoulikembuildtolocateinstalledcompilers[
4、y]/n?n%選擇nSelectacompiler:[1]Lcc-win32C2.4.1[2]MicrosoftVisualC++6.0[3]MicrosoftVisualC++.NET2003[4]MicrosoftVisualC++2005[5]MicrosoftVisualC++2005ExpressEdition[6]MicrosoftVisualC++2008[0]NoneCompiler:6%選擇6,其他編譯器可以選相應(yīng)的選項,我沒有驗證過ThedefaultlocationforMicro
5、softVisualC++2008compilersisC:ProgramFilesMicrosoftVisualStudio9.0,butthatdirectorydoesnotexistonthismachine.UseC:ProgramFilesMicrosoftVisualStudio9.0anyway[y]/n?n%選擇nPleaseenterthelocationofyourcompiler:[C:ProgramFilesMicrosoftVisualStudio9.0]D:P
6、rogramFilesMicrosoftVisualStudio9.0%選擇您自己的當(dāng)前安裝路徑Pleaseverifyyourchoices:Compiler:MicrosoftVisualC++2008Location:D:ProgramFilesMicrosoftVisualStudio9.0Arethesecorrect[y]/n?y%看上述信息,如果正確選擇y*****************************************************************
7、***********Warning:Applications/componentsgeneratedusingMicrosoftVisualStudio2008requirethattheMicrosoftVisualStudio2008run-timelibrariesbeavailableonthecomputerusedfordeployment.Toredistributeyourapplications/components,besurethatthedeploymentmachinehas
8、theserun-timelibraries.****************************************************************************Tryingtoupdateoptionsfile:C:DocumentsandSettingsAdministratorApplicationDataMathWorksMATLABR2008bcompopts.batFromtem