Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Please help in writing the script in matlab for exercise 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started