I am looking for some help on a matlab project I have to do for my Multivariable
ID: 2828127 • Letter: I
Question
I am looking for some help on a matlab project I have to do for my Multivariable Calc project.
Basically all I need to do is create a 3d plot of some large dataset. Some of the exapmles I have seen include a map of the Usa, and the different heights (z components) represent the avg temperature, avg rain fall, things of that sort.
What I had in mind is to create a baseball stadium, such as yankee stadium or fenway park, and someother park.
If that is not a substancial enough project, I am looking to do the map of the Usa and the z component can be something such as population or some other random thing that has a dataset somewhere online.
I have very little background in Matlab, this is actually the first project that I have ever done in the program, so I am looking for some serious help!!
Thanks to anyone who can help me out!!
Explanation / Answer
you will have to use the following command
surf(X,Y,Z)
surf(X,Y,Z) uses Z for the color data and surface height. X and Y are vectors or matrices defining the x and ycomponents of a surface. If X and Y are vectors, length(X) = n and length(Y) = m, where [m,n] = size(Z). In this case, the vertices of the surface faces are (X(j), Y(i), Z(i,j)) triples. To create X and Y matrices for arbitrary domains, use the meshgrid function.
( X(j),Y(j)) should be the coordinates of the place in US and Z(i,j) should be the value of whatever you are plotting
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.