Skip to content

Commit 4e027f3

Browse files
Updated function signatures for function polarhistogramFS, now inline help supports tables and 2D arrays.
1 parent bfb3007 commit 4e027f3

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

toolbox/graphics/functionSignatures.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -833,13 +833,31 @@
833833
"inputs":
834834
[
835835

836-
{"name":"Y", "kind":"required", "type":"numeric"},
837-
{"name":"DataVars", "kind":"namevalue", "type":"table", "purpose":"Table variables for which to compute polarhistograms"},
838-
{"name":"nbins", "kind":"namevalue", "type":["numeric","positive","scalar"]},
839-
{"name":"edges", "kind":"namevalue", "type":["numeric","vector"]},
840-
{"name":"'BinEdges'", "kind":"namevalue", "type":["char", "choices={'BinEdges'}"]},
841-
{"name":"counts", "kind":"namevalue", "type":"numeric"}
836+
{"name":"Y", "kind":"required", "type":[["table"], ["timetable"]]},
837+
{"name":"DataVars", "kind":"namevalue", "type":[["choices=tbl.Properties.VariableNames"], ["choices=tbl.Properties.VarNames"], ["logical", "vector"], ["double", "vector", ">0"], ["cellstr"], ["char"]], "purpose":"Table variables for which to compute polarhistograms"},
838+
{"name":"nbins", "kind":"namevalue", "type":["numeric","vector"], "purpose":"number of bins (scalar) or bin edges (vector)"},
839+
{"name":"groupvars", "kind":"namevalue", "type":[["choices=tbl.Properties.VariableNames"], ["cellstr"], ["vector", "integer", ">0"], ["logical", "vector"], ["char"],["double"]], "purpose":"Grouping variable or [] if there is no grouping variable"},
840+
{"name":"opts", "kind":"properties", "type":"matlab.graphics.chart.primitive.Histogram"}
842841
],
842+
843+
"outputs":
844+
[
845+
{"name":"H", "type":"matlab.graphics.chart.primitive.Histogram"}
846+
],
847+
"description":"creates a polarhistogram"
848+
},
849+
"polarhistogramFS":
850+
{
851+
"inputs":
852+
[
853+
854+
{"name":"Y", "kind":"required", "type":["double", "2d"]},
855+
{"name":"DataVars", "kind":"namevalue", "type":[["logical", "vector"], ["double", "vector", ">0"]], "purpose":"numners indicating variables for which to compute polarhistograms"},
856+
{"name":"nbins", "kind":"namevalue", "type":["numeric","vector"], "purpose":"number of bins (scalar) or bin edges (vector)"},
857+
{"name":"groupvars", "kind":"namevalue", "type":[["vector", "integer", ">0"], ["logical", "vector"],["double"]], "purpose":"Grouping variable or [] if there is no grouping variable"},
858+
{"name":"opts", "kind":"properties", "type":"matlab.graphics.chart.primitive.Histogram"}
859+
],
860+
843861
"outputs":
844862
[
845863
{"name":"H", "type":"matlab.graphics.chart.primitive.Histogram"}

0 commit comments

Comments
 (0)