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
Matlab
- 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