How do I fully open desktop MATLAB from a C# application?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 5 Apr 2022
Risposto: MathWorks Support Team
il 21 Apr 2022
I want to use my C# application to open a full desktop version of MATLAB.
I am only able to open a command line version of MATLAB using the following code:
MLApp.MLApp matlab = new MLApp.MLApp();
Console.WriteLine("Opening Matlab");
matlab.Execute(@"cd c:\temp\Example");
matlab.Visible = 1;
matlab.MaximizeCommandWindow();
However, this produces a simple command line interface to MATLAB. It does not allow access to *.mlx Live Scripts using the MATLAB Live Editor.
Instead, I'd like to open the Live Editor so I can pass the workspace data from my C# application and process that data using a Live Script in the Live Editor.
How can I open the full desktop interface of MATLAB instead?
Risposta accettata
MathWorks Support Team
il 5 Apr 2022
You are able to open a full desktop version by using this command in C#:
matlab.Execute("desktop");
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!