MATLAB Code:
close all
clear
clc
% Exercise 5
fprintf('Exercise
5\n-------------------------------------------------------------\n')
a = [1 5 10 15 20 25 30 35 40 45];
m = [1 5 10 15];
F = zeros(length(m), length(a)); % Each row corresponds to a
mass
disp('Force Vectors:')
colors = ['b', 'g', 'y', 'r'];
styles = ['d', 's', '*', '^'];
figure, hold on
for i = 1:length(m)
F(i,:) = m(i)*a;
fprintf('\tFor mass m = %d:\n\t', m(i)), disp(F(i,:))
plot(a, F(i,:), sprintf('-%s%s',colors(i), styles(i)))
end
xlabel('a (m/s^2)'), ylabel('F (N)'), title('F = ma for different
masses')
legend('m = 1', 'm = 5', 'm = 10', 'm = 15', 'Location',
'northwest')
hold off
fprintf('\nExercise
6\n-------------------------------------------------------------\n')
M = 0.001:0.001:0.01; % Mass
E = [1.0 1.6 2.9 3.6 4.4 5.7 6.4 7.3 8.1 10]*1e14; % Energy
fprintf('INFO: polyfit(...) fits the data points to a polynomial of desired degree using least squares approach.\n\n')
% E = m*c^2 => E = a*m and we need to find a (polynomial of
degree 1)
p = polyfit(M,E,1);
a = p(1);
fprintf('Obtained Model: E = (%e)*m\n', a)
fprintf('Speed of light, c: %e (m/s)\n', sqrt(a))
MM = linspace(min(M), max(M), 100);
EE = a*MM;
figure, plot(M,E/1e14,'o',MM,EE/1e14), xlabel('Mass (kg)'),
ylabel('Energy (J) x 1e14')
legend('Data Points', 'Polynomial Fit', 'Location',
'northwest')
title('E = mc^2')
Output:
Exercise 5
-------------------------------------------------------------
Force Vectors:
For mass m = 1:
1 5 10 15 20 25 30 35 40 45
For mass m = 5:
5 25 50 75 100 125 150 175 200 225
For mass m = 10:
10 50 100 150 200 250 300 350 400 450
For mass m = 15:
15 75 150 225 300 375 450 525 600 675
Exercise 6
-------------------------------------------------------------
INFO: polyfit(...) fits the data points to a polynomial of desired
degree using least squares approach.
Obtained Model: E = (9.587879e+16)*m
Speed of light, c: 3.096430e+08 (m/s)
Plots:
A certain scientist collected Force data at the following accelerations, a, for each mass shown, m...
this is the first question GENERAL QUESTIONS FOR EVERYONE TO ANSWER INDIVIDUALLY 1) Type the code below in a new m-file in MATLAB and save it as vibration.m 2) Open Matlab and set the Matlab's current directory to your working directory; you may type "Is" in the command window to make sure you see the file vibration.m; 3) Type "edit vibration.m" in the command window to popup the text editor with the file vibration.m open; 4) Modify the file vibration.m...
Using Matlab. The following calibration data are from a hot wire anemometer (HWA) velocity measurement system for air flow: Air Velocity, V (m/s) HWA Output Voltage (E) 0.0 1.100 1. 1.1 1.362 2. 1.431 1.5 3. 1.487 2.0 4. 1.535 2.5 5. 1.576 6 3.0 1.647 4.0 7. 1.706 8. 5.0 1.780 9. 6.5 1.841 10. 8.0 1.910 10 11. 1.983 12. 13 13. 16 2.072 14. 20 2.159 15. 25 2.257 16. 32 2.379 17. 40 2.500 1. Perform...
7. A force causes a mass of 4 kg to have an acceleration of 8 m/s2. Suppose something causes the (1 point) mass to be one-quarter of its original amount. What will happen to the acceleration if the amount of force used remains the same? It will decrease to 2 m/s2 It will remain the same. It will increase to 32 m/s2. It will increase to 16 m/s2 8. What is the force required to propel a 2.00 kg object...
Chapter7 Magnetic Force Equipmentt Your equipment will include 5 tiny masses. For each mass that is lost, your group will lose 20% of the credit for this week's report. Learning Objectives In this week's activity, you will investigate the behavior of a permanent magnet in the presence of an ex- ternal magnetic field, created by a current, model and measure how the magnetic force changes as a function of dis- tance from a single coil, . determine the dipole moment...
Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following. The mass m 1, damping coetfic e initial position y(o) O, and the initial velocity i constant k 3 and force 10, all are in appropriate units. Th 1, spring zero, within the time range of O to 20 unit of time, use Matlab find the solution of function y(t)? Hint: you need to convert the 2nd order ODE into two 1st order ODEs....
Let M represents the mass, L represents length and T represents ume. Thenw the following units in terms of M, L and T. Please show your work Velocity Power Acceleration Kinetic Energy Potential Energ Force Pressure Energy
solid state physics 1. Consider a 1-dimensional chain of atoms with mass m. The force constant between atoms are alternately C and 10C. The distances between the nearest neighbors are a/2. Let u, and v, be the displacements of the s-th pair of atoms as shown in the figure below. lu lu Us lu s-1 s-1 s+1 s+1 10C 100 10C (a) Write down the equations of motion for u, and v,. [5] (b) Look for solutions in the form...
• Equations are in a separate document entitled "Equations for Rotational Dynamics Assignment" • Moments of inertia formulas are provided on the last page of this document • Show all of your work when solving equations. It is not sufficient to merely have a correct numerical answer. You need to have used legitimate equations and algebra. You also need to have correctly used the data. • Units must be specified for any isolated number, not just your final answer •...
dynamics problem, please write in clear steps 2. The spool has the mass m and the radius of gyration kG The inextensible chord is attached to the wall at A. The chord is wound at radius R, and the outer radius is 2R. The coefficient of friction between the spool and the ground is μ B F A Given: m, kG+ R, μ, write your solutions in terms of thene ghen quamtitie. Cherck the anas in the wolatioan! a. (10...
Please answer both questions. What is the magnitude of the electric force on one of the masses? Express your answer to two significant figures and include the appropriate units. Review Two 1.2 kg masses are 1.2 m apart (center to center) on a frictionless table. Each has+9.1 of charge. C You may want to review (Pages 613-616) FValue Units For general problem-solving tips and strategies for this topic, you may want to view a Video Tutor Solution of Levitation. Submit...