The given code tries to plot two different types of charts line plot
and 3D pie plot
using subplot
command in Matlab. However, since pie3
function requires an argument with non-negative elements that sum up to a positive value (which is the proportion of each wedge), using x
as an argument here will not make much sense (except probablty in some edge cases).
So, the program will throw an error for the second subplot.
Here is some sample code that can be used to visualize two different charts via subplots.
main.m271 chars15 lines
This will create two subplots with a line plot
in one and a 3D pie plot
in another.
gistlibby LogSnag