Symbolic solve/linsolve GUI Compiler - ERROR

1 回表示 (過去 30 日間)
João Marabisa
João Marabisa 2018 年 4 月 25 日
回答済み: Steven Lord 2019 年 11 月 5 日
Hey, guys! I'm having problem when I try to solve a simple Linear system using GUI compiler. When I compile my GUI using Application Compiler and click on Calculate, it doesn't work. How do I solve this kind of problem, Linear system to use on Compiler? My equations are correct, because if I run on workspace, it works. I was using solve, but it doesnt as well.
y1=100; y2=20; ym=30; xm=20;
syms x1 x2
eq1 = ym*xm-y1*x1-y2*x2 == 0;
eq2 = xm-x1-x2 == 0;
[A,B] = equationsToMatrix([eq1, eq2], [x1, x2]);
X = linsolve(A,B);
dv1_2=double(X(1));
dv2_2=double(X(2));
solv1=[dv1_2];
solv2=[dv2_2];
How do I solve using matlabFunction?
  1 件のコメント
Aaron Pifer
Aaron Pifer 2019 年 11 月 5 日
I also have a similar question. Would love an expert answer on this one.

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2019 年 11 月 5 日
Symbolic Math Toolbox is not eligible for use with MATLAB Compiler. Use matlabFunction to generate one or two function files that compute A and B and use those when you create your application.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by