As the help document of Matlab saying, we can use gplot in such a form as
gplot(A,Coordinates,LineSpec)
But when I try to modify the linewidth of the line and use a code like
gplot(A,Coordinates,'linewidth',2)
an error occurred and the error information saying that Error using gplot:
Too many input arguments.
I was wondering if their is anything wrong with my code.
Building on the answer of PearsonArtPhoto, the lines can be modified if they are explicitly found using
findall(gcf,'type','line').This is a working example:
which produces the following figure
