pdegplot 'Too many input arguments.' when trying to show edge labels

2 views (last 30 days)
Hi, I am trying to show the edge labels of a geometry with pdegplot, but I always get the same error: "Too many input arguments." Even if I try to run the example given in the pdegplot documentation I get the error. The example ist the following:
g = [2 1 1 1 1 1 1 1 1 4 4;
-1 -0.55 -0.5 -0.45 -0.5 0.45 0.5 0.55 0.5 -1 0.169101978725763;
1 -0.5 -0.45 -0.5 -0.55 0.5 0.55 0.5 0.45 0.169101978725763 1;
0 -0.25 -0.3 -0.25 -0.2 -0.25 -0.3 -0.25 -0.2 0 -0.739198919740117;
0 -0.3 -0.25 -0.2 -0.25 -0.3 -0.25 -0.2 -0.25 -0.739198919740117 0;
0 0 0 0 0 0 0 0 0 1 1;
1 1 1 1 1 1 1 1 1 0 0;
0 -0.5 -0.5 -0.5 -0.5 0.5 0.5 0.5 0.5 0 0;
0 -0.25 -0.25 -0.25 -0.25 -0.25 -0.25 -0.25 -0.25 0 0;
0 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 1 1;
0 0 0 0 0 0 0 0 0 0.75 0.75;
0 0 0 0 0 0 0 0 0 0 0];
pdegplot(g)
pdegplot(g,'edgeLabels','on','subdomainLabels','on')
ylim([-.8,.1]) % to see the top edge clearly
pdegplot(g) works fine, but as soon as I give the additional arguments, I get the error. I can't really figure out why so it would be great if somebody could help me with that. I am using Matlab R2012a.
Best Regards
Daniel

Answers (1)

Walter Roberson
Walter Roberson on 3 Feb 2013
The labeling functionality is new in R2012b.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!