ThispackageisusedforcallingrlanguagefrommatlabMostofthefilesalreadyexistontheInternetButIwrotefivetocomplementthispackage1InRenter:>installpackages"rscproxy"2InstallstatconnDCOMlatest3DownloadtheMatlabRLinktoolboxUnzipMATLABRLINKthenpasteMATLABRLINKinMatlab"stoolboxfolderorwhateverfolderyouwantBesuretoaddMATLABRLINKtoyourMatlabpath4UsetemplateandfunctionInthecontentofmatlab2rmthere"saline:matlab2r"yx^2""x""y";Thegeneralformis:matlab2rcommandinputvariablesoutputvariables;Incaseofmultivariablesormulticommandsusematlab2r"Rcommand1;Rcommand2;"{"variable1""variable2"}{"variable1""variable2"};Andwriteyourmatlabcodesinotherplaces">ThispackageisusedforcallingrlanguagefrommatlabMostofthefilesalreadyexistontheInternetButIwrotefivetocomplementthispackage1InRenter:>installpackages"rscproxy"2InstallstatconnDCOMlatest3DownloadtheMatlabRLinktoolboxUnzipMATLAB[更多]
1