i want 3D plot of the following equation iin matlab.buh it keep on giving errors.?

1 次查看(过去 30 天)
I want 3D plot of the following equation iin matlab.buh it keep on giving errors.?
exp(t*i) - (192*exp(t*i)*(2*t^5*i + 5*t^4 + 4*t^3*x^2*i + t^3*i + 6*t^2*x^2 + (9*t^2)/2 + 2*t*x^4*i - 3*t*x^2*i - (15*t*i)/8 + x^4 + (3*x^2)/2 - 3/16))/(64*t^6 + 192*t^4*x^2 + 432*t^4 + 192*t^2*x^4 - 288*t^2*x^2 + 396*t^2 + 64*x^6 + 48*x^4 + 108*x^2 + 9);

采纳的回答

Walter Roberson
Walter Roberson 2017-3-10
If you are expecting a 3d plot then at least one of your variables must be a vector or an array. To handle those you need to vectorize your code. Replace every * with .* and replace every ^ with .^
  5 个评论
Walter Roberson
Walter Roberson 2017-5-4
Your expression appears to be everywhere complex over real x and t.
Note: you should be more careful about which variable is the "first" variable for plotting purpose. You would be better off creating a symbolic function, or use matlabFunction with the 'vars' option to specifically indicate the order of the variables.
Correction: checking further, I see that there are points where the imaginary component goes to zero, located approximately pi apart on the t axis. So there might be lines of x values where the values exist. Certainly not a surface.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by