Concept explainers
To plot:
The
Answer to Problem 1P
Solution:
The plot of the function
Explanation of Solution
The given function is,
The
Substitute
Substitute
The value of
Write the MATLAB script to plot the function
MATLAB Code:
x = [0:0.01:5];
% Define the vector x.
y = x.^2-(10*sqrt(x))+2;
% Define the function y.
plot(x,y,'-g')
Save the MATLAB script with name, Chapter5_56830_5_1P.m in the current folder. Execute the script by typing the script name at the command window to get the plot of the function
Result:
Conclusion:
The plot of the function
Want to see more full solutions like this?
Chapter 5 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,