Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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);

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Mzo. de 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 comentarios
Heya :)
Heya :) el 10 de Mzo. de 2017
graph of this equation is like this bu i am getting nothing :(
Walter Roberson
Walter Roberson el 4 de Mayo de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by