It sounds like you need to start with plot3 , as you’re just describing a set of points in 3D, rather than points on a mesh or surface. Plotting 3D Surfaces L. As I am new to it, I was just trying out. Notice in this example we used a different way to get the domain for x,y using linspace as opposed to the above example. Is my method wrong? Basically, I have 3 parameters, x, y ,z which I have the values from experimental datas and I would like to plot them out. This is how I would plot a surface: This example demonstrates a way to have different x and y ranges.

I do not explain every command or show everything. It is up to you to experiment and look up these commands to better understand them. Basically, I have 3 parameters, x, y ,z which I have the values from experimental datas and I would like to plot them out. Your example only really defines a curve, I’m not sure how you go from that to a surface. This has a lot of stuff; read the contents carefully! As I am new to it, I was just trying out. Stack Overflow works best with JavaScript enabled. It sounds like you need to start with plot3 , as you’re just describing a set of points in 3D, rather than points on a mesh or surface.

Plotting 3D Surfaces L. Defining the domain here is even trickier than for 2D. Sign up using Facebook. This example demonstrates how to plot more than one graph on the same figure. Sign up or log in Sign up using Google.

Hm, as far as i can tell, it rfeemat give you an error since Z has to be a matrix and you’ve only defined a vector. Post as a guest Name. James Archer James Archer 2 4 Use Mozilla Firefox or Safari instead to view these pages.

The main commands are mesh x,y,z and surf z,y,z. See if that does what you want. This page will not show all of them; it will show the way that is the most customizable and can be easily extended to more complicated settings like parametric equations, 3D, etc. Are you looking to plot them in 3D? Establish the domain by creating vectors for ppot and y using linspaceetc. Notice in this example we used a different way to get the domain for x,y using linspace as opposed to the above example.

## Plotting 3D Surfaces

Again, you may need to adjust how many points are used to make the graph not too jagged if number too low or not hang the computer number too high. You don’t want too few points in the “grid” or it will appear jagged, but too many and the computer will slow freemaat or even hang!

Sign up using Email and Password. The command linspace a,b,N gives N points between a and b so linespace 0.

Basically, I have 3 parameters, x, y ,z which I have the values from experimental datas and I would like to plot them out. This is also a learn-by-example page. Your example only really defines a curve, I’m not sure how you go from that to a surface. Stack Overflow works best with JavaScript enabled. This is how I would plot a surface: Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

I do not explain every command or show everything. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

This example demonstrates a way to have different x and y ranges. As such, i tried. Email Required, but never shown. It sounds like you need to start with plot3as you’re just describing a set of points in 3D, rather than points on a mesh or surface. Create a “grid” in the xy-plane for the domain using the command meshgrid Calculate z for the surface, using component-wise computations Plot the surface. This has a lot of stuff; read the contents carefully!

### Plotting 3D Surfaces

I would like to ask about 3d surface plotting. As I am new to it, I was just trying out. This example shows how to graph a horizontal plane.

Sometimes I use axis limets to make the plot look nicer eliminates the unneeded white area’s ; for this set of data I could use xlim [6 11] and ylim [2 6].

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. It is up to you to experiment and look up these commands to better understand them.

There are several ffreemat to produce graphs of functions. Is my method wrong?