MATLAB Sample Example Problems

Опубликовано: 12 Июль 2026
на канале: MrClean1796
32,421
159

Calculating components of a triangle and unit conversions:
Problem 1:
You are given two sides of a triangle, a = 4.5 and b = 6. The angle between them is 35 degrees. Write a script to find the length of the third side and the area of the triangle. Hint: use trigonometric formula.
Problem 2:
There are eight pints in a gallon and 1.76 pints in a liter. The volume of a tank is given as 2 gallons and 4 pints. Write a script which inputs this volume in gallons and pints and converts it to liters.