To write:
A MATLAB code that finds the solution of the equation
Answer to Problem 1P
Solution:
The solution of the equation
Explanation of Solution
The given equation is,
Plot the graph of the above equation.
Figure (1)
The solution of the above equation is
Write the MATLAB code that finds the solution of the equation
MATLAB Code:
fplot('exp(0.3*x)-x^2+4',[0 5])
xlabel('x<<')
ylabel('y<<')
% Plot of the
F = @ (x) exp(0.3*x)-x^2+4;
x1 = fzero(F,2.5)
Save the MATLAB script with the name, Chapter9_29864_9_1P.m in the current folder. Execute the script by typing the script name at the command window to get the code that finds the solution of the equation
Result:
Conclusion:
Therefore, the solution of the equation
Want to see more full solutions like this?
Chapter 9 Solutions
EBK MATLAB: AN INTRODUCTION WITH APPLIC
- Introductory Circuit Analysis (13th Edition)Electrical EngineeringISBN:9780133923605Author:Robert L. BoylestadPublisher:PEARSONDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage LearningProgrammable Logic ControllersElectrical EngineeringISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
- Fundamentals of Electric CircuitsElectrical EngineeringISBN:9780078028229Author:Charles K Alexander, Matthew SadikuPublisher:McGraw-Hill EducationElectric Circuits. (11th Edition)Electrical EngineeringISBN:9780134746968Author:James W. Nilsson, Susan RiedelPublisher:PEARSONEngineering ElectromagneticsElectrical EngineeringISBN:9780078028151Author:Hayt, William H. (william Hart), Jr, BUCK, John A.Publisher:Mcgraw-hill Education,