This is matlab test. please help me how on the paper how to solve it. If two sid
ID: 1719016 • Letter: T
Question
This is matlab test. please help me how on the paper how to solve it.
If two sides of a right triangle are a=7 and b=5, use Matlab to calculate: The hypotenuse c The angle between sides a and c in both radians and degrees The area of the triangle Use Matlab to evaluate For the following test scores in a class use appropriate Matlab commands to calculate the mean, standard deviation, and variance: 86, 71, 98, 77, 64,100, 53, 72, 80, and 92. The balance for money invested continuously can be calculated according to B = Pe^rt. Where, (p) is principal, (r) is rate, and (t) is time in years. If p=800 and r=6%, calculate the balance (B) from t=l to t=15 in two year increments. Create a table of your results. There are 52 different cards in a deck. How many different hands of 5 cards each are possible? Remember, every hand can be arranged (5!) different ways. If A=-2+5i and B=3-i are two complex numbers, use Matlab to calculate: Product of A and B Absolute value of A Conjugate of B Angle for A For the matrix A= use Matlab to determine: The size and length of A The maximum of every column and its location Rearrange the matrix into one column and determine the mean and standard deviation of the new column matrixExplanation / Answer
>> a = 7;
>> b =5;
>> c = sqrt(a^2+b^2)
c =
8.6023
>> angle_rad=asin(a/c)
angle_rad =
0.9505
>> angle_deg = 180*asin(a/c)/pi
angle_deg =
54.4623
>> area = 0.5*c*a*sin(angle_rad)
area =
24.5000
>> exp(4)/(sqrt(3+5^(-2.5)))
ans =
31.4287
>> cos(5*log(10.2))
ans =
0.5781
>> X = [86 71 98 77 64 100 53 72 80 92];
>> mean(X)
ans =
79.3000
>> std(X)
ans =
15.0484
>> var(X)
ans =
226.4556
>> factorial(52)/factorial(47)
ans =
311875200
>> a = -2+5i;
>> b = 3 -i;
>> a*b
ans =
-1.0000 +17.0000i
>> abs(a)
ans =
5.3852
>> conj(b)
ans =
3.0000 + 1.0000i
>> angle(a)
ans =
1.9513
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.