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

3 次查看(过去 30 天)
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