I tried the these code,but it plots for mass3 only
function [c]=tall
clear all;
close all;
clc;
%position of peg
pegX = 5.8;
pegY = 4.2;
%position of mass
xPosm1 = 5.8;
yPosm1 = 3;
xPosm2 = 5.4;
yPosm2 = 5.6;
xPosm3 =4.2 ;
yPosm3 = 4.8;
%velocity of mass
xVelm1 = 0;
yVelm1...
I tried the following code,it compiled but does not display the accurate plot:
clear all;
close all;
clc;
%position of peg
pegX = 5.8;
pegY = 4,2;
%position of mass
xPos1 = 5.8;
yPos1 = 3;
xPos2 = 5.4;
yPos2 = 5.6;
xPos3 =4.2 ;
yPos3 = 4.8;
%velocity of mass
xVel1 = 0...
https://www.physicsforums.com/attachments/251691. Homework Statement
assigned system of masses connected by springs with the parameters specified
Mass M0 details:
Stationary mass, does not move
Starting Positions in meters:
X: 5.8
Y: 4.2
-----------------------------------------
Mass...