Member AB is supported by a cable BC and at A by a square rod which fits loosely through the square hole at the end collar of the member as shown. Determine the x, y, z components of reaction at A and the tension in the cable needed 10 hold the 800-lb cylinder in equilibrium.
BE 1500 – Fall 2016 Quiz 5 1. Write a script that produces the following output. The script should iterate from 1 to 9 to produce the expressions on the left, perform the operation to get the results shown on the right, and print the output below. Your code needs to use either str2num or num2str or both and must utilize at least one loop. 1 x 8 + 1 = 9 12 x 8 + 2 = 98 123 x 8 + 3 = 987 1234 x 8 + 4 = 9876 12345 x 8 + 5 = 98765 123456 x 8 + 6 = 987654 1234567 x 8 + 7 = 9876543 12345678 x 8 + 8 = 98765432 123456789 x 8 + 8 = 987654321 k='123456789';%Initialize my string m=length(k);%Define my stopping point for i=1:m %Loop through the string l=str2num(k(1:i));%Convert string to numbers a=l*8+i; fprintf('%i * %i + %i = %i \n',l,8,i,a)%output end 4 points 1 point for comments 0.5 for k=’123456789’ 0.5 for for loop 1 point for l=str2num(k(1:i)) 1 point for fprintf 2. Create a script that prompts the user to input a series of data points (this needs to be arbitrary; the number of data points could change depending on the order of the polynomial). Create a matrix (A) based off Newton’s interpolating polynomial. Using the backslash operator (Ax=b x=A\b) determine the coefficients for the polynomial. You may only use the built-in functions input, disp, zeros, and ones. A=input('Number of data points '); for i=1:A x(i)=i