How to execute R file in matlab with Windows?

6 ビュー (過去 30 日間)
Clarisha Nijman
Clarisha Nijman 2018 年 10 月 25 日
Hello,
I have a file in R that I want to include and execute in a Matlab file. My laptop uses Windows. Mathworks gives some suggestion. As I cannot find my file path, I simply saved filename.R and the Matlab file in one folder and use RunRcode(filename.R). But it gives the next error: Undefined variable "TransProbMatrixEen" or class "TransProbMatrixEen.R".
Error in TestParts (line 14) RunRcode(TransProbMatrixEen.R),
Then I read some more, and came across this suggested code: !Rscript TransProbMatrixEen.r Error: 'Rscript' is not recognized as an internal or external command, operable program or batch file.
Does anyone have simple feedback/suggestions?
kind regards,
Clarisha

回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by