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

2 Ansichten (letzte 30 Tage)
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);

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Mär. 2017
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 Kommentare
Heya :)
Heya :) am 10 Mär. 2017
graph of this equation is like this bu i am getting nothing :(
Walter Roberson
Walter Roberson am 4 Mai 2017
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by