How can I go about calling another function and estimating a solution?

5 vues (au cours des 30 derniers jours)
Siddart Fredrick
Siddart Fredrick le 5 Fév 2019
Modifié(e) : Stephan le 5 Fév 2019
I have attached a matlab function, that returns a solution to a given system of equations with naive Gaussian elimination. I would like to write a script to call the function and estimate the solution for the following system of equations (attached image) with single presicion.
How can I go about doing that?
systemofeqns.png

Réponse acceptée

Stephan
Stephan le 5 Fév 2019
Modifié(e) : Stephan le 5 Fév 2019
Your new script:
A = [3, 123456789, 8, 5; 2, 13,...];
b = [246913625, ...];
[x, det] = single(nvgss(A,b))
Best regards
Stephan

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by