Help CenterHelp Center
Display number of parameters in a mask
maskobj = Simulink.Mask.get(blockName)
maskobj.numParameters
example
maskobj = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object.
blockName
maskobj.numParameters returns the number of parameters in the mask.
collapse all
Get mask object using block path.
maskobj = Simulink.Mask.get('myModel/Subsystem');
Get the number of parameters in the mask.
maskobj.numParameters;
ans = 13
The handle to the block or the path to the block inside the model specified as a character vector.
Data Types: char | string
char
string
Introduced in R2014a
Simulink.mask | Create Block Masks
Simulink.mask
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office