How do I make an executable system solver?

2 views (last 30 days)
Mike on 9 Nov 2021
Answered: Steven Lord on 9 Nov 2021
I want to make an executable to import and solve the following system of equations from a text file using MATLAB:
[K]{u} = {F}
for example,
This is what I've tried:
K=load arrStiffness.txt
st = structfun(@double, s, 'uniform', 0)
writetable(struct2table(st), 'sol.xlsx')
It does find the solution, but I cannot compile it because the vectors {F} and {u} contains symbols like u2 and u3.
So, is there any way to make it work?

Answers (1)

Steven Lord
Steven Lord on 9 Nov 2021
Creation of symbolic expressions is not supported for use with MATLAB Compiler.

Community Treasure Hunt

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

Start Hunting!

Translated by