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

1 vue (au cours des 30 derniers jours)
Umar Siddiqui
Umar Siddiqui le 2 Mai 2018
Commenté : Umar Siddiqui le 3 Mai 2018
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

Réponse acceptée

Birdman
Birdman le 2 Mai 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

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by