Question
Write a computer program in MATLAB that can be used to determine the magnitude and direction of the resultant of n coplanar forces applied at
Write a computer program in MATLAB that can be used to determine the magnitude and direction of the resultant of n coplanar forces applied at a point A. the problem is completed i need to understand how to apply the code. or if the code is correct. a code is attached below in the comments
-
Chapter 2
- 1P
- 2P
- 3P
- 4P
- 5P
- 6P
- 7P
- 8P
- 9P
- 10P
- 11P
- 12P
- 13P
- 14P
- 15P
- 16P
- 17P
- 18P
- 19P
- 20P
- 21P
- 22P
- 23P
- 24P
- 25P
- 26P
- 27P
- 28P
- 29P
- 30P
- 31P
- 32P
- 33P
- 34P
- 35P
- 36P
- 37P
- 38P
- 39P
- 40P
- 41P
- 42P
- 43P
- 44P
- 45P
- 46P
- 47P
- 48P
- 49P
- 50P
- 51P
- 52P
- 53P
- 54P
- 55P
- 56P
- 57P
- 58P
- 59P
- 60P
- 61P
- 62P
- 63P
- 64P
- 65P
- 66P
- 67P
- 68P
- 69P
- 70P
- 71P
- 72P
- 73P
- 74P
- 75P
- 76P
- 77P
- 78P
- 79P
- 80P
- 81P
- 82P
- 83P
- 84P
- 85P
- 86P
- 87P
- 88P
- 89P
- 90P
- 91P
- 92P
- 93P
- 94P
- 95P
- 96P
- 97P
- 98P
- 99P
- 100P
- 101P
- 102P
- 103P
- 104P
- 105P
- 106P
- 107P
- 108P
- 109P
- 110P
- 111P
- 112P
- 113P
- 114P
- 115P
- 116P
- 117P
- 118P
- 119P
- 120P
- 121P
- 122P
- 123P
- 124P
- 125P
- 126P
- 127RP
- 128RP
- 129RP
- 130RP
- 131RP
- 132RP
- 133RP
- 134RP
- 135RP
- 136RP
- 137RP
- 138RP
-
Chapter 3
-
Chapter 4
-
Chapter 5
-
Chapter 6
-
Chapter 7
-
Chapter 8
-
Chapter 9
-
Chapter 10
Determine the x and y components of each of the forces shown.
Fig. P2.24
- Step 1 of 4
- Step 2 of 4
The forces can be resolved in x and y directions. First, we determine the x and y components of the 120 N force.
- Step 3 of 4
Similarly, find out the x and y components of the 80 N force
- Step 4 of 4
For force component 150 N, the x component can be obtained as
Executable Code : n=input('Enter the number of forces n : '); Fx=0; Fy=0; for i=1:n fprintf('Enter tha value of F%d : ',i); F(i)=input(''); fprintf('Enter tha value of thetha%d in degree : ',i); th(i)=input(''); Fx=Fx+F(i)*cosd(th(i)); Fy=Fy+F(i)*sind(th(i)); end Fr=sqrt(Fx^2+Fy^2); tr=atand(Fy/Fx); fprintf('The magnitude of the resultant force is %f ',Fr) fprintf('The direction of the resultant force is %f degree from x-axis ',tr);
out put:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started