Struggling with Matlab Functions for Linear Equations?

  • Context: MATLAB 
  • Thread starter Thread starter mgb1974
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on creating MATLAB functions to solve systems of linear algebraic equations using the Gauss-Elimination and Gauss-Jordan methods. Users must develop m-files that accept a coefficient matrix, [A], and right-hand side values, {b}, as inputs, and return the matrix of unknown values. The conversation emphasizes the importance of utilizing these functions within a simple MATLAB script to solve user-selected equations. Resources such as the MATLAB primer are recommended for foundational guidance.

PREREQUISITES
  • Understanding of MATLAB programming language
  • Familiarity with linear algebra concepts, specifically systems of equations
  • Knowledge of Gauss-Elimination and Gauss-Jordan methods
  • Ability to create and manipulate m-files in MATLAB
NEXT STEPS
  • Learn how to implement the Gauss-Elimination method in MATLAB
  • Explore the Gauss-Jordan elimination technique for solving linear equations
  • Study how to create and use m-files in MATLAB
  • Review the MATLAB primer for additional programming guidance
USEFUL FOR

Students taking linear algebra courses, MATLAB programmers, and anyone looking to enhance their skills in solving linear equations using MATLAB functions.

mgb1974
Messages
1
Reaction score
0
Anybody know Matlab, Need HELP!

Ok i am taking this class and we have to write programs. The teacher is not much help at all. I need to write this program. I hate this programing stuff.

"Create Matlab functions that solve systems of linear algebraic equations using Gauss-Elimination and Gauss-Jordan methods by obtaining the co-efficient matrix, [A], and the RHS values, {b}, as input and output the matrix of unknown values. Then, use these functions in a simple Matlab code to solve a system of linear algebraic equations based on a user's choice."

Can anybody help me out?? I will make it worth your time!
 
Last edited:
Physics news on Phys.org
mgb1974 said:
Ok i am taking this class and we have to write programs. The teacher is not much help at all. I need to write this program. I hate this programing stuff.

"Create Matlab functions that solve systems of linear algebraic equations using Gauss-Elimination and Gauss-Jordan methods by obtaining the co-efficient matrix, [A], and the RHS values, {b}, as input and output the matrix of unknown values. Then, use these functions in a simple Matlab code to solve a system of linear algebraic equations based on a user's choice."

Can anybody help me out?? I will make it worth your time!

You need to write m - file(s) containing the respective algorithms & simple script. The MATLAB primer for one gives some good basic guidance how to get started :

http://math.ucsd.edu/~driver/21d-s99/matlab-primer.html
http://www.egr.msu.edu/decs/facilities/software/matlab/matlabses1.pdf
 
Last edited by a moderator:

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
11K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K