is the cosh(Hyperbolic cosine) wrong
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151527/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151528/image.png)
1 Comment
Stephen23
on 24 Jun 2015
Edited: Stephen23
on 24 Jun 2015
@cheng sy: Please do not post screen-shots or images of text. By doing this you are making our lives harder: we cannot copy-and-paste the text to try it out, we cannot perform text searches, we cannot copy parts into our answer and change a few characters to show what needs to be fixed...
The harder you make it for us to test code or copy text, the harder it is for us to help you.
This forum lets you paste code and format it nicely using the {} Code button, or to upload larger text files and functions, so there is no reason why screen-shots are required to show us any text.
Please do not post text as images!
Answers (1)
Martin Brown
on 24 Jun 2015
As it says in the help, cosh() operates element wise on an array, so it takes the cosh of each element separately. This seems to be verified by your answers as they're all close to 1 because all the elements of S are close to 0.
1 Comment
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!