I cant get this plot to work please help me :(

조회 수: 3 (최근 30일)
Umar Siddiqui
Umar Siddiqui 2018년 5월 2일
댓글: Umar Siddiqui 2018년 5월 3일
f1 =@(x) (1/(cosh(x.)*cos(x.)-1))*(16*(-(x.^3)*(cosh(x)*sin(x) + cos(x)*sinh(x)))*(-x*(cosh(x)*sin(x)-cos(x)*sinh(x)))-4*(-(x.^2)*sinh(x)*sin(x))*(-(x.^2)*sinh(x)*sin(x)));
x=0.1:0.1:10;
plot(x,f1(x))
hold on
xlim([0 12])
grid on
title('Plot of Determinant against k - CC')
xlabel('k')
ylabel('Determinant')
hold off

채택된 답변

Birdman
Birdman 2018년 5월 2일
Try this:
f1 =@(x) (1./(cosh(x).*cos(x)-1)).*(16.*(-(x.^3).*(cosh(x).*sin(x) + cos(x).*sinh(x))).*(-x.*(cosh(x).*sin(x)-cos(x).*sinh(x)))-4.*(-(x.^2).*sinh(x).*sin(x)).*(-(x.^2).*sinh(x).*sin(x)));
x=0.1:0.1:10;
plot(x,f1(x))
hold on
xlim([0 12])
grid on
title('Plot of Determinant against k - CC')
xlabel('k')
ylabel('Determinant')
hold off

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by