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

1 view (last 30 days)
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

Accepted Answer

Birdman
Birdman on 2 May 2018
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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!