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
MATLAB: An Introduction with Applications
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman