Dear Fellows,(adsbygoogle = window.adsbygoogle || []).push({});

I have a program made in MATLAB-7 , about 3D plotting,

simplest form of program is

[x,z]=meshgrid(linspace(0,4),linspace(-1,1));

t=0.1;

b=1.2;

w=-1.0;

k=2+3*i;

M=4+5*i;

u1=k*M;

u=u1.*exp(w*t+i*b*z);

mesh(u)

this works properly in matlab-7

but when I open it in matlab-10a it gives following syntax error

??? Error using ==> mesh at 80

X, Y, Z, and C cannot be complex.

Error in ==> abc at 9

mesh(u)

can any one help me out to get solve this issue?? I don't want to switch back to same old version of matlab,

thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Error in MATLAB 10a

Loading...

Similar Threads - Error MATLAB | Date |
---|---|

Matlab error matrix function | Apr 25, 2016 |

Insights 5 Common MATLAB Error Messages and How to Fix Them - Comments | May 19, 2015 |

[MATLAB] I am getting this error, could anyone solve it please? | Dec 8, 2014 |

Error code in Matlab | Oct 4, 2014 |

[Matlab] Error running optimization. | May 21, 2014 |

**Physics Forums - The Fusion of Science and Community**