![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177162/image.png)
Please help coding a mug?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Parametrizing a mug. Build a cup which indicates the temperature of the drink by showing colors ranging from blue being cold to red being hot. To parametrize the cup note that it is made of three parts: A cylinder, the base, and the handle. The cylinder has a height ranging from 1 to 7 with base centered at (2,0,1) and radius 2. -Base: A circle centered at (2,0,1) and radius of 2. -Handle: A semi-doughnut [semi-torus] generated by rotating the circle of radius 0.3 centered at (1.5,0) about the y-axis, and then shifting the figure by 4 units along the z-axis.
0 comentarios
Respuestas (1)
Image Analyst
el 16 de Dic. de 2014
It's pretty much done for you. It's almost a standard demo. Try this on the command line:
>> teapotdemo
>> edit teapotdemo
The first one runs it and the second command lets you look at the code. Modify as needed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177162/image.png)
0 comentarios
Ver también
Categorías
Más información sobre Get Started with Control System Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!