MATLAB Answers

Plotting complicated function with asymptotes

31 views (last 30 days)
Ben Phelps
Ben Phelps on 28 Feb 2021
Commented: Ben Phelps on 1 Mar 2021
Hi,
I am struggling to plot this equation in Matlab
I have tried using plot, fplot and ezplot but none seem to be able to handle it. Would anyone be able to help me with this?

Accepted Answer

Image Analyst
Image Analyst on 28 Feb 2021
Did you try
y = linspace(7, 12, 1000);
signal = exp(y .* cot(y)) .* sin(y);
plot(y, signal, 'b-', 'LineWidth', 2);
grid on;
xlabel('y');
ylabel('Signal');
  6 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!