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

3 visualizaciones (últimos 30 días)
Umar Siddiqui
Umar Siddiqui el 2 de Mayo de 2018
Comentada: Umar Siddiqui el 3 de Mayo de 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

Respuesta aceptada

Birdman
Birdman el 2 de Mayo de 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

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by