Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Matlab to find the PA=LU of the vector A and forward substitution? to find the first 100 values of q for an evenly distributed

Use Matlab to find the PA=LU of the vector A and forward substitution? to find the first 100 values of q for an evenly distributed pressure value image text in transcribed and plot the q-values (on the same graph) as q is a funtion of image text in transcribed.

What I have so far is:

A = [1 -1 0 0 -1 0 0; 0 1 -1 -1 0 0 0; 0 0 1 0 1 -1 0; 0 0 0 1 0 1 -1; 2 1 0 1 0 0 2; 0 -1 0 -1 1 1 0; 0 -1 -sqrt(2) 0 1 0 0];

for p0 = 0.035:0.0008585:0.12; L = 1; d = 0.2; f = 0.02; p = 998; mu = 1.002*10^(-3); QA = 48*10^(-5);

b5 = p0*(pi*d^4./(128*mu*L)); b = [0; 0; QA; 0; b5; 0; 0]; [L,U,P]=lu(A); Pb = P*b; c = L\Pb; Pb = P*b; c = L\Pb; q = U\c %first 100 values of q end

That gives the first 100 values of q but I have problem of plotting the graph

Po 0.035 Pa, 0.12Pa

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions