www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/GraphHyperbolicCosineExample.m

    %% Graph of Hyperbolic Cosine
% 
%%
% Graph the hyperbolic cosine function over the domain $-5 \le x \le 5.$

% Copyright 2015 The MathWorks, Inc.

x = -5:0.01:5; 
plot(x,cosh(x)), grid on