how to plot cosx*coshx+1=0

12 Ansichten (letzte 30 Tage)
SeonHye Kim
SeonHye Kim am 16 Mär. 2020
Beantwortet: the cyclist am 16 Mär. 2020
clc
clear
close all
syms x
f(x) = (cos(x))*(cosh(x))+1;
fplot(x,f)
xlim([0 10]);
ylim([-100 100]);
Why is the gragh cut off??

Akzeptierte Antwort

the cyclist
the cyclist am 16 Mär. 2020
I don't have the Symbolic Math Toolbox, so I can't comment on your code. But this worked for me.
f = @(x) (cos(x)).*(cosh(x))+1;
figure
fplot(f)
xlim([0 10]);
ylim([-100 500]);

Weitere Antworten (0)

Kategorien

Mehr zu Function Creation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by