How would I adjust a matrix for fractal pipe network (see attached files)?

조회 수: 1 (최근 30일)
Mazie Foret
Mazie Foret 2017년 9월 14일
편집: Rajesh Balagam 2017년 9월 18일
See attached files. I specifically need help with part (c) described in File "Ass02-Problems.pdf"

답변 (1개)

Rajesh Balagam
Rajesh Balagam 2017년 9월 18일
편집: Rajesh Balagam 2017년 9월 18일
If you are looking for an answer to "How to modify an existing matrix to append new rows/columns?", you can do this as below:
% add a new column to the matrix A
A = [A new_column];
% add a new row to the matrix
A = [A; new_row];
new_row or new_column dimensions should match with the corresponding dimensions of A.
If you looking for an answer to part (c) of the problem, a hint is provided in the question itself. You need to construct a new balance equation and transform it as a new row/column to be added to the existing coefficient matrix "A" and add the new unknown variable from the balance equation to the "x" vector.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by