Hey @Daiki Ichikawa, the pcbStack object is used to create and manipulate a printed circuit board (PCB) stack-up, which consists of multiple layers, including substrates, conductors, and dielectrics. If you want to modify the size of a substrate in a pcbStack object, you can do so by accessing and modifying the properties of the substrate layer within the stack.
Please refer to the below code and modify it based on your requirements:
% Create a default PCB stack
pcb = pcbStack;
% Access the substrate layer (assuming it's the second layer)
substrateLayer = pcb.Layers{2}; % Adjust index as needed
% Set new dimensions for the substrate
substrateLayer.Length = 0.1; % Example length in meters
substrateLayer.Width = 0.05; % Example width in meters
% Update the layer in the pcbStack
pcb.Layers{2} = substrateLayer; % Ensure the index matches the substrate layer
% Visualize the PCB stack
show(pcb);
% Further analysis or operations can be performed here
