MATLAB: Plot3 properties

3d plotsgui

I want to configure a graphic with a differents colors and types of lines, per each line that there is in my graphic.
For example:
mat %matrix
plot3(mat(:,1),mat(:,2),mat(:,3));
How can I change the call to plot3()?

Best Answer

The broad answer to your question is that you need to use "handle graphics." If you call plot3 with an output argument:
>> h = plot3(...)
that "handle" h gives you access to the properties of the line objects in the plot.
>> get(h)
will list the properties, which you can then adjust with the "set" command.
There is a lot of info in the documentation on how to do this.