Yes it is possible. For more information see:
MATLAB # (, WinForms), exe MATLAB (.m) - .NET, exe . : , , exe, ( ).
: -, MATLAB :
function y=SamplePlot(p, d, w, t)
numericValueP=str2num(p);
numericValueD=str2num(d);
numericValueW=str2num(w);
time=str2num(t);
%... do stuff ...
plot(...);
, str2num. . MATLAB
SamplePlot('1', '2', '3', '4')
SamplePlot.exe 1 2 3 4
.m: MATLAB :
deploytool
: SamplePlot.prj(). : .
.m.
: MCR ( MATLAB Compiler Runtime - , , MATLAB, ).
:
mbuild -setup
, "build". exe. exe #, . :
private void button1_Click(object sender, EventArgs e)
{
string p=TextBox1.Text;
string d=TextBox2.Text;
string w=TextBox3.Text;
string t=TextBox4.Text;
string params = String.Format("{0} {1} {2} {3}",p,d,w,t);
System.Diagnostics.Process.Start("SamplePlot.exe", params);
}
, .
( , : exe ).