Please help with revised question

1 回表示 (過去 30 日間)
Chloe Seifer
Chloe Seifer 2019 年 12 月 10 日
コメント済み: Ridwan Alam 2019 年 12 月 10 日
how do I write a function that uses Gauss Elimination to put zeros in a column of a matrix below a given row. The zeros will go in the same column as the row number beginning at the next row down. For example, if 1 is passed as the row number, zeros would go in column 1 beginning in row 2, the row below row 1. Use linear combinations of rows as in Gauss Elimination to put the zeros in the correct place and adjust all the other elements in the row. This is the same as Gauss Elimination except you only need to zero one column. Swap rows when necessary. The arguments passed to the function are the matrix and the row number. The function should work with any size matrix.
A =
[45 -27 -46 15 25
46 -15 -33 -5 -31
8 32 15 5 19
-44 -49 23 -21 -32]

採用された回答

Ridwan Alam
Ridwan Alam 2019 年 12 月 10 日
編集済み: Ridwan Alam 2019 年 12 月 10 日
  2 件のコメント
Chloe Seifer
Chloe Seifer 2019 年 12 月 10 日
that doesnt include an area for the local functions provided
Ridwan Alam
Ridwan Alam 2019 年 12 月 10 日
The code on the link performs standard Gauss-Jordan Elimination, which has most of the components you are asking for. So you need to modify that for your purpose.
After that, please show what you have implemented and some example input and expected output data to get better help. Please don't ask us to do your homework. Thanks!

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by