Problem conversion into MATLAB

3 visualizzazioni (ultimi 30 giorni)
Ron Wilson
Ron Wilson il 5 Lug 2020
Commentato: Steven Lord il 15 Dic 2021
4. A telephone line hangs between two poles 14 m apart in the shape of a catenary y = 20cosh (x/20) -15, where x and y are measured in meters. a. Find the slope of this curve where it meets the right pole. b. Find the angle, θ between the line and the pole.

Risposte (2)

Nishant Gupta
Nishant Gupta il 8 Lug 2020
You can solve your problem using MATLAB as follows:
syms x y
y = 20 * cosh (x/20) -15 ;
Diffrentiate the equation representing line with respect to x to get slope of it:
f(x) = diff(y,x);
To get slope at the point where line meets pole, put x = 14:
slope = vpa(f(14),4);
Finally, to get the angle between the line and pole at that point use atan fun:
angle = vpa(90 - rad2deg(atan(slope)),4);
Refer to the following links to get more details about diff, atan and vpa functions:

Philemon Anaman
Philemon Anaman il 15 Dic 2021
Two poles, one 6 meters tall and one 15 meters tall, are 20 meters apart. A length of wire is attached to the top of each pole and it is also staked to the ground somewhere between the two poles. Where should the wire be staked so that the minimum amount of wire is used?
  1 Commento
Steven Lord
Steven Lord il 15 Dic 2021
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

Accedi per commentare.

Categorie

Scopri di più su Time Series Objects in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by