Objective: Develop a Matlab script that finds the steady-state displacements of
ID: 665537 • Letter: O
Question
Objective: Develop a Matlab script that finds the steady-state displacements of a spring-mass system.
Teams: 3(min)-4(max) Students
Minimum Features:
- GUI should handle any number of mass and springs
GUI reads at least: masses (mi), mass position of zero elongation (x0,i) spring connections, spring constants (kj), g sliding bar(enable analysis at different g forces)
Sets up and solves systems of linear equations for spring-mass system.
Displays a diagram of the system, including normalized box size based on mass and color-coded mass based on final displacement
Bar plot with the displacement of each mass
Saves the output in a text file.
Scripts should be well-documented.
This is the link to the image and problem.
https://www.dropbox.com/s/3t0r5aaulk9xszs/Project%25201.docx?dl=0
Allowed MATLAB functions: plot (and plot related functions), get, set, rectangle, round, msgbox, disp, fprintf, format, input, ones, zeros, ceil, floor, strcmp. Any other function must be approved by instructor before it can be used. You are not allowed to use the “” operator.
Can you please help me develope the GUI in Matlab? Thank You. I appreciate it.
Explanation / Answer
% Joel Lubinitsky % MAE 231 - HW7.1 % 03/04/15 clear all close all clc %% Problem 1: % An $$ 85 kg $$ mass is suspended by a spring of stiffness $$ 20 imes % 10^3 N/m $$ with a viscous damping constant of $$ 1200 Ns/m $$. The % mass is initially at rest and in equilibrium. Calculate the steady-state % displacement amplitude and phase if the mass is excited by a harmonic % force of $$ 75 N $$ at $$ 3 Hz $$. % % Find: $$ x, phi $$ %% Known % $$ m, k, c, F_0, f $$ mass = 85; stiffness = 20 * 10 ^ 3; constantDamping = 1200; xInitial = 0; vInitial = 0; forceHarmonic = 75; frequencyHarminicHz = 3; %% Calculations % $$ f_0 = rac{F_0}{m} $$ % % $$ omega_n = sqrt{rac{k}{m}} $$ % % $$ c_{cr} = sqrt{4km} $$ % % $$ zeta = rac{c}{c_{cr}} $$ % % % $$ omega = 2 pi f $$ % % $$ X = rac{f_0}{sqrt{(omega_n^2 - omega^2)^2 + (2 zeta omega_n % omega)^2}} $$ % % $$ heta = rctan{rac{2 zeta omega_n omega}{omega_n^2 - omega^2}} % $$
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.