how to plot cosx*coshx+1=0

조회 수: 12 (최근 30일)
SeonHye Kim
SeonHye Kim 2020년 3월 16일
답변: the cyclist 2020년 3월 16일
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??

채택된 답변

the cyclist
the cyclist 2020년 3월 16일
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]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by