Skip to content

Add function to run directly from MATLAB API#205

Open
StephenNneji wants to merge 1 commit into
RascalSoftware:mainfrom
StephenNneji:run_matlab
Open

Add function to run directly from MATLAB API#205
StephenNneji wants to merge 1 commit into
RascalSoftware:mainfrom
StephenNneji:run_matlab

Conversation

@StephenNneji
Copy link
Copy Markdown
Contributor

@StephenNneji StephenNneji commented May 12, 2026

Fixes #181

The function should be called as below, it is expected that the user will provide their MATLAB API

problem, results = RAT.utils.matlab.run_matlab_directly(problem, controls, r"C:\Users\steve\Documents\MATLAB\RAT")

@StephenNneji StephenNneji requested a review from DrPaulSharp May 12, 2026 14:12
Copy link
Copy Markdown
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected.

@DrPaulSharp
Copy link
Copy Markdown
Collaborator

Works as expected.

Note that the function call, as set up in the __init__.py, should be problem, results = RAT.matlab.run_matlab_directly(problem, controls, r"C:\Users\steve\Documents\MATLAB\RAT") - i.e., utils is not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify running projects which have Matlab custom models for users.

2 participants