From the course: Learning MATLAB
Unlock the full course today
Join today to access over 23,700 courses taught by industry experts.
Challenge: Create a pyramid plot - MATLAB Tutorial
From the course: Learning MATLAB
Challenge: Create a pyramid plot
- [Instructor] In this challenge, you are going to create and plot a pyramid with a triangular base that has one side equal to six and the other two sides equal to five. The height of the pyramid is equal to five. Let's assume that the bottom left corner of the pyramid starts at point A (0, 0, 0). So steps to follow are you have to create three arrays, X, Y, and Z, with the range based on the starting point A and the dimensions of the pyramid. The base of the pyramid must be set to magenta color, front phase green, left, red, and right, yellow. And then you have to add a title. This is a 3D plot of a pyramid and add the X, Y, Z labels. So have fun. Good luck and see you in the solution video.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.