Concept explainers
To plot:
The position of a moving particle as a
and
Answer to Problem 1P
Solution:
The program is stated as follows.
Explanation of Solution
The given equation is,
The
Write the MATLAB code to plot the position of a moving particle as a function of time from the equation,
and
MATLAB Code:
t = 0:0.1:20;
r = 0.01.*(30-t).^2;
x = r.*sin(2.*t);
y = r.*cos(2.*t);
z = 0.5.*t.^(1.5);
plot3(x,y,z,'r','linewidth',2)
grid on
xlabel('x'); ylabel('y'); zlabel('z')
Save the MATLAB script with name, Chapter10_56830_10_1P.m in the current folder. Execute the script by typing the script name at the command window to get the code to plot the position of a moving particle as a function of time from the equation,
and
Result:
Conclusion:
Therefore, the required program is executed above.
Want to see more full solutions like this?
Chapter 10 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,