Question: Please help in writing the script in matlab for exercise 1 Solving a Single Non-Linear Equation in MATLAB : 'fsolve' Exercise 1: Use MATLAB's 'Isolve'

Please help in writing the script in matlab for exercise 1 Please help in writing the script in matlab for exercise 1 Solving

Solving a Single Non-Linear Equation in MATLAB : 'fsolve' Exercise 1: Use MATLAB's 'Isolve' to solve the following non-linear equation using T-100C as a starting point: 760 = 0.4*10^(6.89-1203.5/(T+219.9)) + 0.6*10^(6.96-1346.8/(T+219.7)) Step 1: Rearrange the equations to the form f(0 = 0 f(T) = 0.4*10^(6.89-1203.5/(T+219.9)) +0.6*10^(6.96-1346.8/(T+219.7)) - 760 Step 2: Write & Save a function m-file named 'fun' that accepts an input vector 'T' and generates an output vector 'P function f = fun(T) f-0.410^(6.89-1203.5/(T-219.9))+0.6*10^(6.96-1346.8/CT-219.7))-760 end Step 3: Use the following commands in the Command Window to solve the non-linear equation using T = 100C as a starting point. >> fsolve(fun, 100) Equation solved. > fsolve completed because the vector of function values is near zero > as measured by the default value of the function tolerance, and > the problem appears regular as measured by the gradient. > > ans = > 95.2085

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!