DocumentationHelp Center
Set dimensions for signal interface element
setDimensions(interfaceElem,dimensions)
example
setDimensions(interfaceElem,dimensions) sets the dimensions for the designated signal interface element.
interfaceElem
dimensions
collapse all
Create a model named 'archModel', add an interface, create an interface element with a name 'x', and set the dimensions for the interface element '2'.
'archModel'
'x'
'2'
modelName = 'archModel'; arch = systemcomposer.createModel(modelName); % Create model interface = arch.InterfaceDictionary.addInterface('interface'); % Add interface elem = interface.addElement('x'); % Create interface element setDimensions(elem,'2'); % Set dimensions for interface element
Interface element, specified as a systemcomposer.interface.SignalElement object.
systemcomposer.interface.SignalElement
Dimensions of interface element, specified as a character vector.
Data Types: char
char
addElement | addInterface | createModel | systemcomposer.interface.SignalElement
addElement
addInterface
createModel
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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
Get trial now