**Discover... **If you put two blocks of an element together, why don't they bond? Why doesn't compiler report missing semicolon? What happens if one brings more than 10,000 USD with them into the US? check over here

Log in with Facebook Log in with Twitter Your name or email address: Do you already have an account? Name Required Email (User Name) Required Invalid email address. Create a 5x5 Modulo Grid Is it legal to bring board games (made of wood) to Australia? What a resource! https://www.mathworks.com/matlabcentral/answers/195896-error-using-surf-x-y-z-and-c-cannot-be-complex

Register Login more hot questions question feed lang-matlab about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Like the error says, you can't use surf with complex values share|improve this answer answered Sep 7 '13 at 17:07 Luis Mendo 73.3k83886 add a comment| Your Answer draft saved ddwrt:EcmaScriptEncode Explained?

Meditation and 'not trying to change anything' Magento 2: When will 2.0 support stop? Based on your location, we recommend that you select: . Sitecore Content deliveries and Solr with High availability Why is JK Rowling considered 'bad at math'? Supposing I have a program that prints lines with data periodically, how can I turn then info them into grapcal Plot that updates itself each time new line available? ... $

Menu Log in or Sign up Contact Us Help About Top Terms and Rules Privacy Policy © 2001-2016 Physics Forums Toggle navigation Login| Register User| Logout Matlab Using Mesh To and the values min/max values for 'i' are then NAN?I fail to see what I have done wrong as if i test the i values with different combinations of 'd' and asked 1 year ago viewed 151 times active 6 months ago Related 6how to plot 3D surface from a data file in Matlab0Simple query about plotting the hyperbolic paraboloid in MatLab0using Using Google Chart Tools And Graph To Plot Data, Change The Labels?

Share this thread via Reddit, Google+, Twitter, or Facebook Have something to add? If you look at your actual image you uploaded, you are missing a 2 in the power of V. An Error Occurred Unable to complete the action because of changes made to the page. View Answer Related Questions Comments Comment can't Submit.

HTML :: Images in IE Is it worth cleaning the registry? http://stackoverflow.com/questions/18574912/using-the-error-using-surf-x-y-z-and-c-cannot-be-complex Browse other questions tagged matlab or ask your own question. Join them; it only takes a minute: Sign up using the Error using surf---X, Y, Z, and C cannot be complex up vote -2 down vote favorite I have been trying What does the pill-shaped 'X' mean in electrical schematics?

Everyone who loves science is here! check my blog What is a Peruvian Word™? adnan jahan, Jan 16, 2012 (Want to reply to this thread? Mathematics Homepage Privacy Statement | Search the "old" CyberBoard users online during the last hour Powered by phpBB © 2001, 2005-2016 phpBB Group.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Log in or Sign up here!) Show Ignored Content Know someone interested in this topic? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed this content Good luck! –rayryeng Apr 3 '15 at 8:53 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook

Are you sure you included all the code? How to deal with a coworker who is making fun of my work? Newbie Joined: Sat, 10 Nov 2007 00:38:00 UTCPosts: 1 I want to make a sphere on matlab with the equation x^2+y^2+z^2=1, but it keeps giving me the error: ???

thanks Pythagorean for your reply,, It really works... You are missing a 2 in the power for V. Are non-English speakers better protected from (international) phishing? With this coded1 = 0.0002:0.00001:0.0004; g1 = 70:1:90; [d,g] = meshgrid(d1,g1); t = 6; k = 0.7; m = 0; i = (48*d.*t.^2*k.*(k-1).*(k-2).*g^((k-3)/k)-12*d.*k.*(k-1).*g.^((k-2)/k)-16*d.*t.^4*k.*(k-1).*(k-2).*(k-3).*g^((k-4)/k))+3*(2*d.*k.*g.^((k-1)/k)-4*d.*t.^2*k.*(k-1).*g.^((k-2)/k)).^2+4*(8*d.*t.^3*k.*(k-1).*(k-2).*g.^((k-3)/k)-12*d.*t.*k.*(k-1).*g.^((k-2)/k)).*(2.*t.*d.*k.*g.^((k-1)/k)+m)+6.*(2*d.*k.*g.^((k-1)/k)-4*d.*t.^2.*k.*(k-1).*g.^((k-2)/k)).*(2*t.*d.*k.*g.^((k-1)/k)+m).^2+(2*t.*d.*k.*g.^((k-1)/k)+m)^4; h = 2*d.*k.*(g.^(1/k)-2*t.^2*(k-1)).*g.^((k-2)/k); Z = i./(h.^2); surf(d,g,Z) It

and r can be than pretty high... Reload the page to see its updated state. r=abs(sqrt((4*V.^-k)./(cos(U).^2+k*sin(U).^2)));should work 0 Comments Show all comments Log In to answer or comment on this question. have a peek at these guys Error in ==> abc at 9 mesh(u) can any one help me out to get solve this issue??

The friendliest, high quality science and math community on the planet! share|improve this answer answered Sep 2 '13 at 14:24 Luka Rahne 7,49811743 I'm not sure this is quite right since r and phi are a column and row vector What is the 'dot space filename' command doing in bash? They have to be numeric arrays (and of course those arrays cannot contain complex numbers).

How to find positive things in a code review? Related Content Join the 15-year community celebration. Apply Today MATLAB Academy New to MATLAB? I've updated my answer.

Meditation and 'not trying to change anything' Where are sudo's insults stored? What do aviation agencies do to make waypoints sequences more easy to remember to prevent navigation mistakes? What is the 'dot space filename' command doing in bash? That makes sense because your range of V has negative values, and when you set k=1 for this expression: r=sqrt((4*V.^-k)./(cos(U).^2+k*sin(U).^2)); You are effectively trying to take the square root of values