Question 1: Write a TUI script file to solve the problem below for the Statics p
ID: 2995203 • Letter: Q
Question
Question 1:
Explanation / Answer
clc
clear all
fid = fopen('MYRESULTS2.TXT','w');
F_BA = input('Please input F_BA = ');
F_BC = input('Please input F_BC = ');
BA = [-0.75 -7 6];
BC = [4.25 -7 1];
theta=acos(length(BA)*length(BC)/dot(BA,BC));
R = sqrt(F_BA^2+F_BC^2-2*F_BA*F_BC*cos(theta));
fprintf('theta= %6.2f deg F_BA= %6.2f N F_BC= %6.2f N R= %6.2f N ',...
theta*180/pi,F_BA,F_BC,R);
fprintf(fid,'theta= %6.2f deg F_BA= %6.2f N F_BC= %6.2f N R= %6.2f N ',...
theta*180/pi,F_BA,F_BC,R);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.