how to plot cosx*coshx+1=0

18 vues (au cours des 30 derniers jours)
SeonHye Kim
SeonHye Kim le 16 Mar 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??

Réponse acceptée

the cyclist
the cyclist le 16 Mar 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]);

Plus de réponses (0)

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by